OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ |
7 | 7 |
8 #include "content/public/browser/web_ui_controller.h" | 8 #include "content/public/browser/web_ui_controller.h" |
9 | 9 |
10 class Profile; | 10 class Profile; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Gets the next page URL from the query portion of the sync promo URL. | 60 // Gets the next page URL from the query portion of the sync promo URL. |
61 static GURL GetNextPageURLForSyncPromoURL(const GURL& url); | 61 static GURL GetNextPageURLForSyncPromoURL(const GURL& url); |
62 | 62 |
63 // Gets the source from the query portion of the sync promo URL. | 63 // Gets the source from the query portion of the sync promo URL. |
64 // The source identifies from where the sync promo was opened. | 64 // The source identifies from where the sync promo was opened. |
65 static Source GetSourceForSyncPromoURL(const GURL& url); | 65 static Source GetSourceForSyncPromoURL(const GURL& url); |
66 | 66 |
67 // Returns whether the given sync URL contains auto_close parameter. | 67 // Returns whether the given sync URL contains auto_close parameter. |
68 static bool GetAutoCloseForSyncPromoURL(const GURL& url); | 68 static bool GetAutoCloseForSyncPromoURL(const GURL& url); |
69 | 69 |
| 70 // Returns true if chrome should use the web-based sign in flow, false if |
| 71 // chrome should use the ClientLogin flow. This function will return true |
| 72 // only for platforms where |ENABLE_ONE_CLICK_SIGNIN| is defined. |
| 73 static bool UseWebBasedSigninFlow(); |
| 74 |
70 private: | 75 private: |
71 DISALLOW_COPY_AND_ASSIGN(SyncPromoUI); | 76 DISALLOW_COPY_AND_ASSIGN(SyncPromoUI); |
72 }; | 77 }; |
73 | 78 |
74 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ | 79 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ |
OLD | NEW |