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

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

Issue 2862653002: If force-sign-in policy is enabled, popup warning dialog before window closing if auth token becom… (Closed)
Patch Set: nit Created 3 years, 6 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 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/forced_reauthentication_dialog_browsertest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698