OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/webui/signin/inline_login_handler.h" | 5 #include "chrome/browser/ui/webui/signin/inline_login_handler.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/metrics/user_metrics.h" | 10 #include "base/metrics/user_metrics.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 base::UserMetricsAction("Signin_Signin_FromNTPContentSuggestions")); | 170 base::UserMetricsAction("Signin_Signin_FromNTPContentSuggestions")); |
171 break; | 171 break; |
172 case signin_metrics::AccessPoint::ACCESS_POINT_RESIGNIN_INFOBAR: | 172 case signin_metrics::AccessPoint::ACCESS_POINT_RESIGNIN_INFOBAR: |
173 base::RecordAction( | 173 base::RecordAction( |
174 base::UserMetricsAction("Signin_Signin_FromReSigninInfobar")); | 174 base::UserMetricsAction("Signin_Signin_FromReSigninInfobar")); |
175 break; | 175 break; |
176 case signin_metrics::AccessPoint::ACCESS_POINT_TAB_SWITCHER: | 176 case signin_metrics::AccessPoint::ACCESS_POINT_TAB_SWITCHER: |
177 base::RecordAction( | 177 base::RecordAction( |
178 base::UserMetricsAction("Signin_Signin_FromTabSwitcher")); | 178 base::UserMetricsAction("Signin_Signin_FromTabSwitcher")); |
179 break; | 179 break; |
| 180 case signin_metrics::AccessPoint::ACCESS_POINT_FORCE_SIGNIN_WARNING: |
| 181 base::RecordAction( |
| 182 base::UserMetricsAction("Signin_Signin_FromForceSigninWarning")); |
| 183 break; |
180 case signin_metrics::AccessPoint::ACCESS_POINT_MAX: | 184 case signin_metrics::AccessPoint::ACCESS_POINT_MAX: |
181 NOTREACHED(); | 185 NOTREACHED(); |
182 break; | 186 break; |
183 } | 187 } |
184 } | 188 } |
185 | 189 |
186 void InlineLoginHandler::ContinueHandleInitializeMessage() { | 190 void InlineLoginHandler::ContinueHandleInitializeMessage() { |
187 base::DictionaryValue params; | 191 base::DictionaryValue params; |
188 | 192 |
189 const std::string& app_locale = g_browser_process->GetApplicationLocale(); | 193 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 browser->signin_view_controller()->CloseModalSignin(); | 287 browser->signin_view_controller()->CloseModalSignin(); |
284 | 288 |
285 // Does nothing if user manager is not showing. | 289 // Does nothing if user manager is not showing. |
286 UserManagerProfileDialog::HideDialog(); | 290 UserManagerProfileDialog::HideDialog(); |
287 } | 291 } |
288 | 292 |
289 void InlineLoginHandler::CloseDialogFromJavascript() { | 293 void InlineLoginHandler::CloseDialogFromJavascript() { |
290 if (IsJavascriptAllowed()) | 294 if (IsJavascriptAllowed()) |
291 CallJavascriptFunction("inline.login.closeDialog"); | 295 CallJavascriptFunction("inline.login.closeDialog"); |
292 } | 296 } |
OLD | NEW |