| 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/first_run/first_run.h" | 5 #include "chrome/browser/first_run/first_run.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 if (contents && | 369 if (contents && |
| 370 (contents->GetURL().GetOrigin().spec() == | 370 (contents->GetURL().GetOrigin().spec() == |
| 371 chrome::kChromeUIChromeSigninURL || | 371 chrome::kChromeUIChromeSigninURL || |
| 372 gaia::IsGaiaSignonRealm(contents->GetURL().GetOrigin()) || | 372 gaia::IsGaiaSignonRealm(contents->GetURL().GetOrigin()) || |
| 373 contents->GetURL() == | 373 contents->GetURL() == |
| 374 chrome::GetSettingsUrl(chrome::kSyncSetupSubPage))) { | 374 chrome::GetSettingsUrl(chrome::kSyncSetupSubPage))) { |
| 375 return; | 375 return; |
| 376 } | 376 } |
| 377 | 377 |
| 378 if (contents && contents->GetURL().SchemeIs(content::kChromeUIScheme)) { | 378 if (contents && contents->GetURL().SchemeIs(content::kChromeUIScheme)) { |
| 379 #if defined(OS_WIN) |
| 379 // Suppress the first run bubble if 'make chrome metro' flow is showing. | 380 // Suppress the first run bubble if 'make chrome metro' flow is showing. |
| 380 if (contents->GetURL().host() == chrome::kChromeUIMetroFlowHost) | 381 if (contents->GetURL().host() == chrome::kChromeUIMetroFlowHost) |
| 381 return; | 382 return; |
| 383 #endif |
| 382 | 384 |
| 383 // Suppress the first run bubble if the NTP sync promo bubble is showing | 385 // Suppress the first run bubble if the NTP sync promo bubble is showing |
| 384 // or if sign in is in progress. | 386 // or if sign in is in progress. |
| 385 if (contents->GetURL().host() == chrome::kChromeUINewTabHost) { | 387 if (contents->GetURL().host() == chrome::kChromeUINewTabHost) { |
| 386 Profile* profile = | 388 Profile* profile = |
| 387 Profile::FromBrowserContext(contents->GetBrowserContext()); | 389 Profile::FromBrowserContext(contents->GetBrowserContext()); |
| 388 SigninManagerBase* manager = | 390 SigninManagerBase* manager = |
| 389 SigninManagerFactory::GetForProfile(profile); | 391 SigninManagerFactory::GetForProfile(profile); |
| 390 bool signin_in_progress = manager && manager->AuthInProgress(); | 392 bool signin_in_progress = manager && manager->AuthInProgress(); |
| 391 bool is_promo_bubble_visible = | 393 bool is_promo_bubble_visible = |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 SetShouldDoPersonalDataManagerFirstRun(); | 804 SetShouldDoPersonalDataManagerFirstRun(); |
| 803 | 805 |
| 804 internal::DoPostImportPlatformSpecificTasks(profile); | 806 internal::DoPostImportPlatformSpecificTasks(profile); |
| 805 } | 807 } |
| 806 | 808 |
| 807 uint16 auto_import_state() { | 809 uint16 auto_import_state() { |
| 808 return g_auto_import_state; | 810 return g_auto_import_state; |
| 809 } | 811 } |
| 810 | 812 |
| 811 } // namespace first_run | 813 } // namespace first_run |
| OLD | NEW |