parameters: (actions)
docstring: This parses the experimental feature flags for UMA actions.
  
    Arguments:
      actions: set of actions to add to.
docstring_summary: This parses the experimental feature flags for UMA actions.
docstring_tokens: This parses the experimental feature flags for UMA actions .
function: def AddAboutFlagsActions(actions):
    """This parses the experimental feature flags for UMA actions.
  
    Arguments:
      actions: set of actions to add to.
    """
    about_flags = os.path.join(REPOSITORY_ROOT, 'chrome', 'browser',
                               'about_flags.cc')
    flag_name_re = re.compile(r'\s*"([0-9a-zA-Z\-_]+)",\s*// FLAGS:RECORD_UMA')
    for line in open(about_flags):
      match = flag_name_re.search(line)
      if match:
        actions.add("AboutFlags_" + match.group(1))
      # If the line contains the marker but was not matched by the regex, put up
      # an error if the line is not a comment.
      elif 'FLAGS:RECORD_UMA' in line and line[0:2] != '//':
        print >>sys.stderr, 'WARNING: This line is marked for recording ' + \
            'about:flags metrics, but is not in the proper format:\n' + line
function_tokens: def AddAboutFlagsActions ( actions ) : about_flags = os . path . join ( REPOSITORY_ROOT , 'chrome' , 'browser' , 'about_flags.cc' ) flag_name_re = re . compile ( r'\s*"([0-9a-zA-Z\-_]+)",\s*// FLAGS:RECORD_UMA' ) for line in open ( about_flags ) : match = flag_name_re . search ( line ) if match : actions . add ( "AboutFlags_" + match . group ( 1 ) ) # If the line contains the marker but was not matched by the regex, put up # an error if the line is not a comment. elif 'FLAGS:RECORD_UMA' in line and line [ 0 : 2 ] != '//' : print >> sys . stderr , 'WARNING: This line is marked for recording ' + 'about:flags metrics, but is not in the proper format:\n' + line