Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_service.cc

Issue 418043002: Add test for showing confirmation dialog for unsecure signin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) { 50 void LoginUIService::SyncConfirmationUIClosed(bool configure_sync_first) {
51 FOR_EACH_OBSERVER( 51 FOR_EACH_OBSERVER(
52 Observer, 52 Observer,
53 observer_list_, 53 observer_list_,
54 OnSyncConfirmationUIClosed(configure_sync_first)); 54 OnSyncConfirmationUIClosed(configure_sync_first));
55 } 55 }
56 56
57 void LoginUIService::UntrustedLoginUIShown() {
58 FOR_EACH_OBSERVER(Observer, observer_list_, OnUntrustedLoginUIShown());
59 }
60
57 void LoginUIService::ShowLoginPopup() { 61 void LoginUIService::ShowLoginPopup() {
58 #if defined(OS_CHROMEOS) 62 #if defined(OS_CHROMEOS)
59 if (chrome::IsRunningInForcedAppMode()) 63 if (chrome::IsRunningInForcedAppMode())
60 InlineLoginDialog::Show(profile_); 64 InlineLoginDialog::Show(profile_);
61 #else 65 #else
62 chrome::ScopedTabbedBrowserDisplayer displayer( 66 chrome::ScopedTabbedBrowserDisplayer displayer(
63 profile_, chrome::GetActiveDesktop()); 67 profile_, chrome::GetActiveDesktop());
64 chrome::ShowBrowserSignin(displayer.browser(), signin::SOURCE_APP_LAUNCHER); 68 chrome::ShowBrowserSignin(displayer.browser(), signin::SOURCE_APP_LAUNCHER);
65 #endif 69 #endif
66 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698