| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" | 5 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/environment.h" | 10 #include "base/environment.h" |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // be an app tab. | 355 // be an app tab. |
| 356 OpenApplicationTab(profile); | 356 OpenApplicationTab(profile); |
| 357 | 357 |
| 358 // In case of app mode + session restore we want to focus that app. | 358 // In case of app mode + session restore we want to focus that app. |
| 359 if (app_contents_observer.contents()) | 359 if (app_contents_observer.contents()) |
| 360 app_contents_observer.contents()->GetView()->SetInitialFocus(); | 360 app_contents_observer.contents()->GetView()->SetInitialFocus(); |
| 361 | 361 |
| 362 if (process_startup) { | 362 if (process_startup) { |
| 363 if (browser_defaults::kOSSupportsOtherBrowsers && | 363 if (browser_defaults::kOSSupportsOtherBrowsers && |
| 364 !command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) { | 364 !command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) { |
| 365 if (!chrome::ShowAutolaunchPrompt(profile)) | 365 if (!chrome::ShowAutolaunchPrompt(profile)) { |
| 366 chrome::ShowDefaultBrowserPrompt(profile); | 366 bool permit_prompt_on_first_run = browser_creator_ && |
| 367 browser_creator_->get_suppressed_set_as_default_dialog(); |
| 368 chrome::ShowDefaultBrowserPrompt(profile, |
| 369 permit_prompt_on_first_run); |
| 370 } |
| 367 } | 371 } |
| 368 #if defined(OS_MACOSX) | 372 #if defined(OS_MACOSX) |
| 369 // Check whether the auto-update system needs to be promoted from user | 373 // Check whether the auto-update system needs to be promoted from user |
| 370 // to system. | 374 // to system. |
| 371 KeystoneInfoBar::PromotionInfoBar(profile); | 375 KeystoneInfoBar::PromotionInfoBar(profile); |
| 372 #endif | 376 #endif |
| 373 } | 377 } |
| 374 } | 378 } |
| 375 | 379 |
| 376 // If we're recording or playing back, startup the EventRecorder now | 380 // If we're recording or playing back, startup the EventRecorder now |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 // New: | 909 // New: |
| 906 prefs->GetString(prefs::kHomePage), | 910 prefs->GetString(prefs::kHomePage), |
| 907 prefs->GetBoolean(prefs::kHomePageIsNewTabPage), | 911 prefs->GetBoolean(prefs::kHomePageIsNewTabPage), |
| 908 prefs->GetBoolean(prefs::kShowHomeButton), | 912 prefs->GetBoolean(prefs::kShowHomeButton), |
| 909 // Backup: | 913 // Backup: |
| 910 backup_homepage, | 914 backup_homepage, |
| 911 backup_homepage_is_ntp, | 915 backup_homepage_is_ntp, |
| 912 backup_show_home_button)); | 916 backup_show_home_button)); |
| 913 } | 917 } |
| 914 } | 918 } |
| OLD | NEW |