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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.cc

Issue 471023003: Make sure the new confirmation bubble is always shown upon signin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 4 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 | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
diff --git a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
index 38b928e2caa4931567509f3fefaacf680b849eaf..b1d80880c193de54d609714fa0fb175db2274b34 100644
--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
@@ -138,10 +138,7 @@ void InlineSigninHelper::OnSigninOAuthInformationAvailable(
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_)->
signin_error_controller();
- std::string is_constrained;
- net::GetValueForKeyInQuery(current_url_, "constrained", &is_constrained);
- bool show_inline_confirmation_for_sync =
- switches::IsNewAvatarMenu() && is_constrained == "1";
+ bool is_new_avatar_menu = switches::IsNewAvatarMenu();
OneClickSigninSyncStarter::StartSyncMode start_mode;
if (source == signin::SOURCE_SETTINGS || choose_what_to_sync_) {
@@ -153,7 +150,7 @@ void InlineSigninHelper::OnSigninOAuthInformationAvailable(
OneClickSigninSyncStarter::SHOW_SETTINGS_WITHOUT_CONFIGURE :
OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST;
} else {
- start_mode = show_inline_confirmation_for_sync ?
+ start_mode = is_new_avatar_menu ?
OneClickSigninSyncStarter::CONFIRM_SYNC_SETTINGS_FIRST :
OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS;
}
@@ -162,12 +159,13 @@ void InlineSigninHelper::OnSigninOAuthInformationAvailable(
if (confirm_untrusted_signin_) {
confirmation_required =
OneClickSigninSyncStarter::CONFIRM_UNTRUSTED_SIGNIN;
+ } else if (is_new_avatar_menu) {
+ confirmation_required = OneClickSigninSyncStarter::CONFIRM_AFTER_SIGNIN;
} else {
confirmation_required =
source == signin::SOURCE_SETTINGS ||
source == signin::SOURCE_WEBSTORE_INSTALL ||
- choose_what_to_sync_ ||
- show_inline_confirmation_for_sync ?
+ choose_what_to_sync_ ?
OneClickSigninSyncStarter::NO_CONFIRMATION :
OneClickSigninSyncStarter::CONFIRM_AFTER_SIGNIN;
}
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698