| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index d600b6431d603937f6e9f4eab2915d60b5933d3f..6f0d66ffc986c1e83e2c32a37f7020310be6d339 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -903,9 +903,12 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
|
| prefs::kBrowserSuppressDefaultBrowserPrompt,
|
| master_prefs_->suppress_default_browser_prompt_for_version);
|
| }
|
| - } else if (parsed_command_line().HasSwitch(switches::kNoFirstRun)) {
|
| - // Create the First Run beacon anyways if --no-first-run was passed on the
|
| - // command line.
|
| + }
|
| +
|
| + if (do_first_run_tasks_ ||
|
| + parsed_command_line().HasSwitch(switches::kNoFirstRun)) {
|
| + // Create the First Run sentinel whether first run tasks are executed
|
| + // or not.
|
| first_run::CreateSentinel();
|
| }
|
| }
|
|
|