summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/first_run.cc')
-rwxr-xr-xchrome/browser/first_run.cc7
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;
}