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

Side by Side Diff: chrome/browser/signin/signin_promo.h

Issue 872433006: Disconnect one click sign in code. The code itself will be removed in followup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 10 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 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // The source identifies from where the sign in promo was opened. 88 // The source identifies from where the sign in promo was opened.
89 signin_metrics::Source GetSourceForPromoURL(const GURL& url); 89 signin_metrics::Source GetSourceForPromoURL(const GURL& url);
90 90
91 // Returns true if the auto_close parameter in the given URL is set to true. 91 // Returns true if the auto_close parameter in the given URL is set to true.
92 bool IsAutoCloseEnabledInURL(const GURL& url); 92 bool IsAutoCloseEnabledInURL(const GURL& url);
93 93
94 // Returns true if the showAccountManagement parameter in the given url is set 94 // Returns true if the showAccountManagement parameter in the given url is set
95 // to true. 95 // to true.
96 bool ShouldShowAccountManagement(const GURL& url); 96 bool ShouldShowAccountManagement(const GURL& url);
97 97
98 // Returns true if the given URL is the standard continue URL used with the
99 // sync promo when the web-based flow is enabled. The query parameters
100 // of the URL are ignored for this comparison.
101 bool IsContinueUrlForWebBasedSigninFlow(const GURL& url);
102
103 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only. 98 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only.
104 void ForceWebBasedSigninFlowForTesting(bool force); 99 void ForceWebBasedSigninFlowForTesting(bool force);
105 100
106 // Registers the preferences the Sign In Promo needs. 101 // Registers the preferences the Sign In Promo needs.
107 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
108 103
109 } // namespace signin 104 } // namespace signin
110 105
111 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ 106 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698