diff options
author | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-28 23:07:21 +0000 |
---|---|---|
committer | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-28 23:07:21 +0000 |
commit | dfa08b04cf8ee5a34972379f254061647313e2f0 (patch) | |
tree | f97fabbf58bded8170db33f41047e350b7006bd2 /chrome/browser/app_controller_mac.mm | |
parent | 7ccd66a1d36934f1034dfc8eb8583771c125ffd1 (diff) | |
download | chromium_src-dfa08b04cf8ee5a34972379f254061647313e2f0.zip chromium_src-dfa08b04cf8ee5a34972379f254061647313e2f0.tar.gz chromium_src-dfa08b04cf8ee5a34972379f254061647313e2f0.tar.bz2 |
Refactor FirstRun class code into namespace first_run progressively. This cl refactors:
IsChromeFirstRun()
CreateSentinel()
RemoveSentinel()
GetFirstRunSentinelFilePath()
It also fixed an issue that chromeos first run won't create sentinel file, and the following runs always think it is a first run.
BUG=108137
TEST=None
Review URL: http://codereview.chromium.org/8989043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r-- | chrome/browser/app_controller_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index 059edc4..e94ee26 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -1059,7 +1059,7 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu'; } CommandLine dummy(CommandLine::NO_PROGRAM); - BrowserInit::IsFirstRun first_run = FirstRun::IsChromeFirstRun() ? + BrowserInit::IsFirstRun first_run = first_run::IsChromeFirstRun() ? BrowserInit::IS_FIRST_RUN : BrowserInit::IS_NOT_FIRST_RUN; BrowserInit::LaunchWithProfile launch(FilePath(), dummy, first_run); launch.OpenURLsInBrowser(browser, false, urls); |