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

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

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure Created 7 years, 11 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
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 222287af937538d85338c3cfd471fc44c2f13d6f..c3524fd0f3cae9456c51804ff38d786520ea1e44 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
@@ -393,9 +393,6 @@ bool OneClickSigninHelper::CanOffer(content::WebContents* web_contents,
if (!profile)
return false;
- if (!profile->IsSyncAccessible())
- return false;
-
if (can_offer_for == CAN_OFFER_FOR_INTERSTITAL_ONLY &&
!profile->GetPrefs()->GetBoolean(prefs::kReverseAutologinEnabled))
return false;
@@ -502,9 +499,6 @@ OneClickSigninHelper::Offer OneClickSigninHelper::CanOfferOnIOThreadImpl(
if (io_data->is_incognito())
return DONT_OFFER;
- if (!browser_sync::SyncPrefs::IsSyncAccessibleOnIOThread(io_data))
- return DONT_OFFER;
-
if (!io_data->reverse_autologin_enabled()->GetValue())
return DONT_OFFER;

Powered by Google App Engine
This is Rietveld 408576698