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

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

Issue 435423005: Implement the inline signin confirmation bubble and mirror upgrade tutorial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits fixed 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
« no previous file with comments | « chrome/browser/ui/webui/signin/login_ui_service.h ('k') | chrome/common/pref_names.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29 matching lines...) Expand all
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/login_ui_service.h ('k') | chrome/common/pref_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698