

@flow.StateHandler(next_state='ParseFiles')
def Start(self):
    'Determine the Firefox history directory.'
    self.state.Register('hist_count', 0)
    self.state.Register('history_paths', [])
    if self.args.history_path:
        filename.state.history_paths.append(self.args.history_path)
    else:
        self.state.history_paths = self.GuessHistoryPaths(self.args.username)
        if (not self.state.history_paths):
            raise flow.FlowError('Could not find valid History paths.')
    if (self.runner.output is not None):
        self.runner.output = aff4.FACTORY.Create(self.runner.output.urn, 'VFSAnalysisFile', token=self.token)
    filename = 'places.sqlite'
    for path in self.state.history_paths:
        self.CallFlow('FileFinder', paths=[os.path.join(path, '**2', filename)], pathtype=self.state.args.pathtype, action=file_finder.FileFinderAction(action_type=file_finder.FileFinderAction.Action.DOWNLOAD), next_state='ParseFiles')

dataset/ETHPy150Open google/grr/grr/lib/flows/general/webhistory.py FirefoxHistory.Start/VarMisuse@54/80 `self`->`filename`