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/webui/signin/login_ui_service.h" | 5 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/signin/signin_promo.h" | 8 #include "chrome/browser/signin/signin_promo.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_navigator.h" | 10 #include "chrome/browser/ui/browser_navigator.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 void LoginUIService::LoginUIClosed(LoginUI* ui) { | 42 void LoginUIService::LoginUIClosed(LoginUI* ui) { |
43 if (current_login_ui() != ui) | 43 if (current_login_ui() != ui) |
44 return; | 44 return; |
45 | 45 |
46 ui_ = NULL; | 46 ui_ = NULL; |
47 FOR_EACH_OBSERVER(Observer, observer_list_, OnLoginUIClosed(ui)); | 47 FOR_EACH_OBSERVER(Observer, observer_list_, OnLoginUIClosed(ui)); |
48 } | 48 } |
49 | 49 |
| 50 void LoginUIService::SyncConfirmationUIClosed(bool configure_sync_first) { |
| 51 FOR_EACH_OBSERVER( |
| 52 Observer, |
| 53 observer_list_, |
| 54 OnSyncConfirmationUIClosed(configure_sync_first)); |
| 55 } |
| 56 |
50 void LoginUIService::ShowLoginPopup() { | 57 void LoginUIService::ShowLoginPopup() { |
51 #if defined(OS_CHROMEOS) | 58 #if defined(OS_CHROMEOS) |
52 if (chrome::IsRunningInForcedAppMode()) | 59 if (chrome::IsRunningInForcedAppMode()) |
53 InlineLoginDialog::Show(profile_); | 60 InlineLoginDialog::Show(profile_); |
54 #else | 61 #else |
55 chrome::ScopedTabbedBrowserDisplayer displayer( | 62 chrome::ScopedTabbedBrowserDisplayer displayer( |
56 profile_, chrome::GetActiveDesktop()); | 63 profile_, chrome::GetActiveDesktop()); |
57 chrome::ShowBrowserSignin(displayer.browser(), signin::SOURCE_APP_LAUNCHER); | 64 chrome::ShowBrowserSignin(displayer.browser(), signin::SOURCE_APP_LAUNCHER); |
58 #endif | 65 #endif |
59 } | 66 } |
OLD | NEW |