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

Side by Side Diff: chrome/browser/signin/signin_global_error.cc

Issue 2687693002: Linux/Windows: Setting focus to the first profile in profile switcher (Closed)
Patch Set: Renaming |focus_first_profile| to |is_source_keyboard| Created 3 years, 10 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
« no previous file with comments | « chrome/browser/signin/chrome_signin_helper.cc ('k') | chrome/browser/ui/browser_commands.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/signin/signin_global_error.h" 5 #include "chrome/browser/signin/signin_global_error.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/app/chrome_command_ids.h" 10 #include "chrome/app/chrome_command_ids.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (login_ui->current_login_ui()) { 93 if (login_ui->current_login_ui()) {
94 login_ui->current_login_ui()->FocusUI(); 94 login_ui->current_login_ui()->FocusUI();
95 return; 95 return;
96 } 96 }
97 97
98 UMA_HISTOGRAM_ENUMERATION("Signin.Reauth", 98 UMA_HISTOGRAM_ENUMERATION("Signin.Reauth",
99 signin_metrics::HISTOGRAM_REAUTH_SHOWN, 99 signin_metrics::HISTOGRAM_REAUTH_SHOWN,
100 signin_metrics::HISTOGRAM_REAUTH_MAX); 100 signin_metrics::HISTOGRAM_REAUTH_MAX);
101 browser->window()->ShowAvatarBubbleFromAvatarButton( 101 browser->window()->ShowAvatarBubbleFromAvatarButton(
102 BrowserWindow::AVATAR_BUBBLE_MODE_REAUTH, signin::ManageAccountsParams(), 102 BrowserWindow::AVATAR_BUBBLE_MODE_REAUTH, signin::ManageAccountsParams(),
103 signin_metrics::AccessPoint::ACCESS_POINT_MENU); 103 signin_metrics::AccessPoint::ACCESS_POINT_MENU, false);
104 #endif 104 #endif
105 } 105 }
106 106
107 bool SigninGlobalError::HasBubbleView() { 107 bool SigninGlobalError::HasBubbleView() {
108 return !GetBubbleViewMessages().empty(); 108 return !GetBubbleViewMessages().empty();
109 } 109 }
110 110
111 base::string16 SigninGlobalError::GetBubbleViewTitle() { 111 base::string16 SigninGlobalError::GetBubbleViewTitle() {
112 return l10n_util::GetStringUTF16(IDS_SIGNIN_ERROR_BUBBLE_VIEW_TITLE); 112 return l10n_util::GetStringUTF16(IDS_SIGNIN_ERROR_BUBBLE_VIEW_TITLE);
113 } 113 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ExecuteMenuItem(browser); 173 ExecuteMenuItem(browser);
174 } 174 }
175 175
176 void SigninGlobalError::BubbleViewCancelButtonPressed(Browser* browser) { 176 void SigninGlobalError::BubbleViewCancelButtonPressed(Browser* browser) {
177 NOTREACHED(); 177 NOTREACHED();
178 } 178 }
179 179
180 void SigninGlobalError::OnErrorChanged() { 180 void SigninGlobalError::OnErrorChanged() {
181 GlobalErrorServiceFactory::GetForProfile(profile_)->NotifyErrorsChanged(this); 181 GlobalErrorServiceFactory::GetForProfile(profile_)->NotifyErrorsChanged(this);
182 } 182 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/chrome_signin_helper.cc ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698