'Determine the Firefox history directory.'

@flow.StateHandler()
def Start(self):

    self.state.hist_count = 0
    self.state.history_paths = []
    if self.args.history_path:
        self.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.')
    filename = 'places.sqlite'
    for path in self.state.history_paths:
        self.CallFlow(file_finder.FileFinder.__name__, paths=[os.path.join(path, '**2', filename)], pathtype=self.args.pathtype, action=rdf_file_finder.FileFinderAction(action_type=rdf_file_finder.FileFinderAction.Action.DOWNLOAD), next_state='ParseFiles')
