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

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

Issue 1806353002: Enhanced Sync Confirmation modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 26 matching lines...) Expand all
37 } 37 }
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(uint32_t result) {
48 SyncConfirmationUIClosedResults results) {
49 FOR_EACH_OBSERVER( 48 FOR_EACH_OBSERVER(
50 Observer, 49 Observer,
51 observer_list_, 50 observer_list_,
52 OnSyncConfirmationUIClosed(results)); 51 OnSyncConfirmationUIClosed(result));
53 } 52 }
54 53
55 void LoginUIService::UntrustedLoginUIShown() { 54 void LoginUIService::UntrustedLoginUIShown() {
56 FOR_EACH_OBSERVER(Observer, observer_list_, OnUntrustedLoginUIShown()); 55 FOR_EACH_OBSERVER(Observer, observer_list_, OnUntrustedLoginUIShown());
57 } 56 }
58 57
59 void LoginUIService::ShowLoginPopup() { 58 void LoginUIService::ShowLoginPopup() {
60 #if defined(OS_CHROMEOS) 59 #if defined(OS_CHROMEOS)
61 NOTREACHED(); 60 NOTREACHED();
62 #else 61 #else
(...skipping 14 matching lines...) Expand all
77 browser->window()->ShowAvatarBubbleFromAvatarButton( 76 browser->window()->ShowAvatarBubbleFromAvatarButton(
78 message.empty() ? BrowserWindow::AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN 77 message.empty() ? BrowserWindow::AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN
79 : BrowserWindow::AVATAR_BUBBLE_MODE_SHOW_ERROR, 78 : BrowserWindow::AVATAR_BUBBLE_MODE_SHOW_ERROR,
80 signin::ManageAccountsParams(), 79 signin::ManageAccountsParams(),
81 signin_metrics::AccessPoint::ACCESS_POINT_EXTENSIONS); 80 signin_metrics::AccessPoint::ACCESS_POINT_EXTENSIONS);
82 } 81 }
83 82
84 const base::string16& LoginUIService::GetLastLoginResult() { 83 const base::string16& LoginUIService::GetLastLoginResult() {
85 return last_login_result_; 84 return last_login_result_;
86 } 85 }
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