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

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: 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 | no next file » | 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..be68472835bc2744d713116661481cfbfb5ffec0 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
@@ -229,14 +229,8 @@ 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;
Roger Tawa OOO till Jul 10th 2013/06/20 07:51:29 Can probably get rid of this local var too. Its n
noms (inactive) 2013/06/21 16:59:24 Done.
- 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,
@@ -994,6 +988,7 @@ void OneClickSigninHelper::NavigateToPendingEntry(
continue_url_.is_valid() &&
url.ReplaceComponents(replacements) !=
continue_url_.ReplaceComponents(replacements)) {
+ untrusted_confirmation_required_ = true;
Roger Tawa OOO till Jul 10th 2013/06/20 07:51:29 I don't think this change and the one at line 1063
noms (inactive) 2013/06/21 16:59:24 As discussed, removed this change. On 2013/06/20 0
if (++untrusted_navigations_since_signin_visit_ > kMaxNavigationsSince)
CleanTransientState();
}
@@ -1064,9 +1059,10 @@ void OneClickSigninHelper::DidStopLoading(
RedirectToNtpOrAppsPage(web_contents(), source_);
}
- if (!continue_url_match && !IsValidGaiaSigninRedirectOrResponseURL(url) &&
- ++untrusted_navigations_since_signin_visit_ > kMaxNavigationsSince) {
- CleanTransientState();
+ if (!continue_url_match && !IsValidGaiaSigninRedirectOrResponseURL(url)) {
+ untrusted_confirmation_required_ = true;
+ if (++untrusted_navigations_since_signin_visit_ > kMaxNavigationsSince)
+ CleanTransientState();
}
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698