Chromium Code Reviews| Index: chrome/browser/profiles/profile_manager.cc |
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc |
| index 3586a41177351111f92cca0b7de1969584932c70..b3dd87beca8f12a88c7162b5ac32d8b54cc36e4c 100644 |
| --- a/chrome/browser/profiles/profile_manager.cc |
| +++ b/chrome/browser/profiles/profile_manager.cc |
| @@ -20,6 +20,7 @@ |
| #include "chrome/browser/sessions/session_service_factory.h" |
| #include "chrome/browser/sync/profile_sync_service.h" |
| #include "chrome/browser/ui/browser_window.h" |
| +#include "chrome/browser/ui/webui/sync_promo_ui.h" |
| #include "chrome/common/chrome_notification_types.h" |
| #include "chrome/common/chrome_constants.h" |
| #include "chrome/common/chrome_switches.h" |
| @@ -66,8 +67,14 @@ class NewProfileLauncher : public ProfileManagerObserver { |
| if (status == STATUS_INITIALIZED) { |
| DCHECK(profile); |
| Browser* browser = Browser::Create(profile); |
| - browser->AddSelectedTabWithURL(GURL(chrome::kChromeUINewTabURL), |
| - PageTransition::LINK); |
| + GURL url; |
|
sky
2011/10/01 20:32:42
This doesn't seem right. Shouldn't we be calling i
sail
2011/10/01 21:37:34
This code is only called if the user adds a new pr
|
| + if (SyncPromoUI::ShouldShowSyncPromoAtStartup(profile, true)) { |
| + SyncPromoUI::DidShowSyncPromoAtStartup(profile); |
| + url = GURL(chrome::kChromeUISyncPromoURL); |
| + } else { |
| + url = GURL(chrome::kChromeUINewTabURL); |
| + } |
| + browser->AddSelectedTabWithURL(url, PageTransition::LINK); |
| browser->window()->Show(); |
| } |
| } |