

@flow.StateHandler(next_state='StartRequests')
def Start(self):
    'Redirect to start on the workers and not in the UI.'
    client = aff4.FACTORY.Open(self.client_id, token=self.token)
    system = client.Get(client.Schema.SYSTEM)
    paths = BROWSER_PATHS.get(system)
    self.state.Register('all_paths', [])
    if self.args.check_chrome:
        self.state.all_paths += paths.get('Chrome', [])
    if self.args.check_ie:
        self.state.all_paths += paths.get('IE', [])
    if self.args.check_firefox:
        self.state.all_paths += paths.get('Firefox', [])
    if (not self.state.all_paths):
        raise flow.FlowError(('Unsupported system %s for CacheGrep' % system))
    self.state.Register('users', [])
    for user in self.args.grep_users:
        user_info = flow_utils.GetUserInfo(client, user)
        if (not user_info):
            raise flow.FlowError(('No such user %s' % user))
        self.state.users.append(user_info)
    user.CallState(next_state='StartRequests')

dataset/ETHPy150Open google/grr/grr/lib/flows/general/webhistory.py CacheGrep.Start/VarMisuse@245/341 `self`->`user`