OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 SOURCE_MENU, | 25 SOURCE_MENU, |
26 SOURCE_SETTINGS, | 26 SOURCE_SETTINGS, |
27 SOURCE_EXTENSION_INSTALL_BUBBLE, | 27 SOURCE_EXTENSION_INSTALL_BUBBLE, |
28 SOURCE_WEBSTORE_INSTALL, | 28 SOURCE_WEBSTORE_INSTALL, |
29 SOURCE_APP_LAUNCHER, | 29 SOURCE_APP_LAUNCHER, |
30 SOURCE_APPS_PAGE_LINK, | 30 SOURCE_APPS_PAGE_LINK, |
31 SOURCE_BOOKMARK_BUBBLE, | 31 SOURCE_BOOKMARK_BUBBLE, |
32 SOURCE_AVATAR_BUBBLE_SIGN_IN, | 32 SOURCE_AVATAR_BUBBLE_SIGN_IN, |
33 SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT, | 33 SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT, |
34 SOURCE_DEVICES_PAGE, | 34 SOURCE_DEVICES_PAGE, |
| 35 SOURCE_REAUTH, |
35 SOURCE_UNKNOWN, // This must be last. | 36 SOURCE_UNKNOWN, // This must be last. |
36 }; | 37 }; |
37 | 38 |
38 // Returns true if the sign in promo should be visible. | 39 // Returns true if the sign in promo should be visible. |
39 // |profile| is the profile of the tab the promo would be shown on. | 40 // |profile| is the profile of the tab the promo would be shown on. |
40 bool ShouldShowPromo(Profile* profile); | 41 bool ShouldShowPromo(Profile* profile); |
41 | 42 |
42 // Returns true if we should show the sign in promo at startup. | 43 // Returns true if we should show the sign in promo at startup. |
43 bool ShouldShowPromoAtStartup(Profile* profile, bool is_new_profile); | 44 bool ShouldShowPromoAtStartup(Profile* profile, bool is_new_profile); |
44 | 45 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 89 |
89 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only. | 90 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only. |
90 void ForceWebBasedSigninFlowForTesting(bool force); | 91 void ForceWebBasedSigninFlowForTesting(bool force); |
91 | 92 |
92 // Registers the preferences the Sign In Promo needs. | 93 // Registers the preferences the Sign In Promo needs. |
93 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 94 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
94 | 95 |
95 } // namespace signin | 96 } // namespace signin |
96 | 97 |
97 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ | 98 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_PROMO_H_ |
OLD | NEW |