| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |