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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.cc

Issue 17482002: Display confirmation dialog for untrusted signins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/sync/one_click_signin_sync_starter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/one_click_signin_helper.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.cc b/chrome/browser/ui/sync/one_click_signin_helper.cc
index 8502d5271afd93e798e08d401bd93aec5ff1da58..e94693f634c718d763c98df492e13c0b83c7b50b 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
@@ -229,20 +229,12 @@ void StartSync(const StartSyncArgs& args,
return;
}
- // If we are giving the user the option to configure sync, then that will
- // suffice as a confirmation.
- OneClickSigninSyncStarter::ConfirmationRequired confirmation =
- args.confirmation_required;
- if (start_mode == OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST &&
- confirmation == OneClickSigninSyncStarter::CONFIRM_UNTRUSTED_SIGNIN) {
- confirmation = OneClickSigninSyncStarter::CONFIRM_AFTER_SIGNIN;
- }
-
// The starter deletes itself once its done.
new OneClickSigninSyncStarter(args.profile, args.browser, args.session_index,
args.email, args.password, start_mode,
args.force_same_tab_navigation,
- confirmation);
+ args.confirmation_required,
+ args.source);
int action = one_click_signin::HISTOGRAM_MAX;
switch (args.auto_accept) {
@@ -1150,12 +1142,12 @@ void OneClickSigninHelper::DidStopLoading(
LogOneClickHistogramValue(one_click_signin::HISTOGRAM_ACCEPTED);
LogOneClickHistogramValue(one_click_signin::HISTOGRAM_WITH_ADVANCED);
SigninManager::DisableOneClickSignIn(profile);
- // Don't bother displaying an extra confirmation (even in the SAML case)
- // since the user will get prompted to setup sync anyway.
+ // Display the extra confirmation (even in the SAML case) in case this
+ // was an untrusted renderer.
StartSync(
StartSyncArgs(profile, browser, auto_accept_, session_index_, email_,
password_, false /* force_same_tab_navigation */,
- false /* confirmation_required */, source_),
+ true /* confirmation_required */, source_),
Andrew T Wilson (Slow) 2013/06/24 08:48:13 Why are we *always* displaying this confirmation,
OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST);
break;
case AUTO_ACCEPT_EXPLICIT: {
« no previous file with comments | « no previous file | chrome/browser/ui/sync/one_click_signin_sync_starter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698