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

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

Issue 2138643004: [Autofill] Add support for signin promo on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aaa
Patch Set: addressed comments Created 4 years, 5 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 "chrome/browser/ui/profile_chooser_constants.h" 10 #include "chrome/browser/ui/profile_chooser_constants.h"
(...skipping 12 matching lines...) Expand all
23 const char kSignInPromoQueryKeyAccessPoint[] = "access_point"; 23 const char kSignInPromoQueryKeyAccessPoint[] = "access_point";
24 const char kSignInPromoQueryKeyAutoClose[] = "auto_close"; 24 const char kSignInPromoQueryKeyAutoClose[] = "auto_close";
25 const char kSignInPromoQueryKeyContinue[] = "continue"; 25 const char kSignInPromoQueryKeyContinue[] = "continue";
26 const char kSignInPromoQueryKeyForceKeepData[] = "force_keep_data"; 26 const char kSignInPromoQueryKeyForceKeepData[] = "force_keep_data";
27 const char kSignInPromoQueryKeyReason[] = "reason"; 27 const char kSignInPromoQueryKeyReason[] = "reason";
28 const char kSignInPromoQueryKeySource[] = "source"; 28 const char kSignInPromoQueryKeySource[] = "source";
29 const char kSignInPromoQueryKeyConstrained[] = "constrained"; 29 const char kSignInPromoQueryKeyConstrained[] = "constrained";
30 const char kSignInPromoQueryKeyShowAccountManagement[] = 30 const char kSignInPromoQueryKeyShowAccountManagement[] =
31 "showAccountManagement"; 31 "showAccountManagement";
32 32
33 // Returns true if the sign in promo should be visible.
34 // |profile| is the profile of the tab the promo would be shown on.
35 bool ShouldShowPromo(Profile* profile);
36
37 // Returns true if we should show the sign in promo at startup. 33 // Returns true if we should show the sign in promo at startup.
38 bool ShouldShowPromoAtStartup(Profile* profile, bool is_new_profile); 34 bool ShouldShowPromoAtStartup(Profile* profile, bool is_new_profile);
39 35
40 // Called when the sign in promo has been shown so that we can keep track 36 // Called when the sign in promo has been shown so that we can keep track
41 // of the number of times we've displayed it. 37 // of the number of times we've displayed it.
42 void DidShowPromoAtStartup(Profile* profile); 38 void DidShowPromoAtStartup(Profile* profile);
43 39
44 // Registers the fact that the user has skipped the sign in promo. 40 // Registers the fact that the user has skipped the sign in promo.
45 void SetUserSkippedPromo(Profile* profile); 41 void SetUserSkippedPromo(Profile* profile);
46 42
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 95
100 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only. 96 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only.
101 void ForceWebBasedSigninFlowForTesting(bool force); 97 void ForceWebBasedSigninFlowForTesting(bool force);
102 98
103 // Registers the preferences the Sign In Promo needs. 99 // Registers the preferences the Sign In Promo needs.
104 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 100 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
105 101
106 } // namespace signin 102 } // namespace signin
107 103
108 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ 104 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698