diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 23:16:58 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 23:16:58 +0000 |
commit | fdf02ac2cd0e5b01f3a6a76046606ba4cb2929f3 (patch) | |
tree | f7881410f75069b4356a046ec67ae77f5a27d023 /chrome/browser/first_run.cc | |
parent | 172a3f03b8474a35188c038fb9054ef730f0ac31 (diff) | |
download | chromium_src-fdf02ac2cd0e5b01f3a6a76046606ba4cb2929f3.zip chromium_src-fdf02ac2cd0e5b01f3a6a76046606ba4cb2929f3.tar.gz chromium_src-fdf02ac2cd0e5b01f3a6a76046606ba4cb2929f3.tar.bz2 |
First run is going into infinite recursion if started from master prefs
- keeps creating importer processes
- the issue is the creation of the first run sentinel file needs to
happen before starting the new process.
BUG=1535947
Review URL: http://codereview.chromium.org/13312
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.cc')
-rwxr-xr-x | chrome/browser/first_run.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc index ff046fa..c6f4f29 100755 --- a/chrome/browser/first_run.cc +++ b/chrome/browser/first_run.cc @@ -205,6 +205,12 @@ bool FirstRun::ProcessMasterPreferences( // required state given that FirstRunView is not going to be called. FirstRun::SetShowFirstRunBubblePref(); + // We need to be able to create the first run sentinel or else we cannot + // proceed because ImportSettings will launch the importer process which + // would end up here if the sentinel is not present. + if (!FirstRun::CreateSentinel()) + return false; + if (parse_result & installer_util::MASTER_PROFILE_SHOW_WELCOME) FirstRun::SetShowWelcomePagePref(); @@ -222,7 +228,6 @@ bool FirstRun::ProcessMasterPreferences( } } - FirstRun::CreateSentinel(); return false; } |