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::UntrustedSigninUIShown() { |
| 51 FOR_EACH_OBSERVER(Observer, observer_list_, UntrustedSigninUIShown()); |
| 52 } |
| 53 |
50 void LoginUIService::ShowLoginPopup() { | 54 void LoginUIService::ShowLoginPopup() { |
51 #if defined(OS_CHROMEOS) | 55 #if defined(OS_CHROMEOS) |
52 if (chrome::IsRunningInForcedAppMode()) | 56 if (chrome::IsRunningInForcedAppMode()) |
53 InlineLoginDialog::Show(profile_); | 57 InlineLoginDialog::Show(profile_); |
54 #else | 58 #else |
55 chrome::ScopedTabbedBrowserDisplayer displayer( | 59 chrome::ScopedTabbedBrowserDisplayer displayer( |
56 profile_, chrome::GetActiveDesktop()); | 60 profile_, chrome::GetActiveDesktop()); |
57 chrome::ShowBrowserSignin(displayer.browser(), signin::SOURCE_APP_LAUNCHER); | 61 chrome::ShowBrowserSignin(displayer.browser(), signin::SOURCE_APP_LAUNCHER); |
58 #endif | 62 #endif |
59 } | 63 } |
OLD | NEW |