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

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

Issue 1868273002: Enhanced Sync Confirmation modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dan's comments + rebase Created 4 years, 8 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
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 "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/signin/signin_promo.h" 9 #include "chrome/browser/signin/signin_promo.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 27 matching lines...) Expand all
38 38
39 void LoginUIService::LoginUIClosed(LoginUI* ui) { 39 void LoginUIService::LoginUIClosed(LoginUI* ui) {
40 if (current_login_ui() != ui) 40 if (current_login_ui() != ui)
41 return; 41 return;
42 42
43 ui_ = NULL; 43 ui_ = NULL;
44 FOR_EACH_OBSERVER(Observer, observer_list_, OnLoginUIClosed(ui)); 44 FOR_EACH_OBSERVER(Observer, observer_list_, OnLoginUIClosed(ui));
45 } 45 }
46 46
47 void LoginUIService::SyncConfirmationUIClosed( 47 void LoginUIService::SyncConfirmationUIClosed(
48 SyncConfirmationUIClosedResults results) { 48 SyncConfirmationUIClosedResult result) {
49 FOR_EACH_OBSERVER( 49 FOR_EACH_OBSERVER(
50 Observer, 50 Observer,
51 observer_list_, 51 observer_list_,
52 OnSyncConfirmationUIClosed(results)); 52 OnSyncConfirmationUIClosed(result));
53 } 53 }
54 54
55 void LoginUIService::UntrustedLoginUIShown() { 55 void LoginUIService::UntrustedLoginUIShown() {
56 FOR_EACH_OBSERVER(Observer, observer_list_, OnUntrustedLoginUIShown()); 56 FOR_EACH_OBSERVER(Observer, observer_list_, OnUntrustedLoginUIShown());
57 } 57 }
58 58
59 void LoginUIService::ShowLoginPopup() { 59 void LoginUIService::ShowLoginPopup() {
60 #if defined(OS_CHROMEOS) 60 #if defined(OS_CHROMEOS)
61 NOTREACHED(); 61 NOTREACHED();
62 #else 62 #else
(...skipping 14 matching lines...) Expand all
77 browser->window()->ShowAvatarBubbleFromAvatarButton( 77 browser->window()->ShowAvatarBubbleFromAvatarButton(
78 message.empty() ? BrowserWindow::AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN 78 message.empty() ? BrowserWindow::AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN
79 : BrowserWindow::AVATAR_BUBBLE_MODE_SHOW_ERROR, 79 : BrowserWindow::AVATAR_BUBBLE_MODE_SHOW_ERROR,
80 signin::ManageAccountsParams(), 80 signin::ManageAccountsParams(),
81 signin_metrics::AccessPoint::ACCESS_POINT_EXTENSIONS); 81 signin_metrics::AccessPoint::ACCESS_POINT_EXTENSIONS);
82 } 82 }
83 83
84 const base::string16& LoginUIService::GetLastLoginResult() { 84 const base::string16& LoginUIService::GetLastLoginResult() {
85 return last_login_result_; 85 return last_login_result_;
86 } 86 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/login_ui_service.h ('k') | chrome/browser/ui/webui/signin/sync_confirmation_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698