| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 static bool GetAutoCloseForSyncPromoURL(const GURL& url); | 72 static bool GetAutoCloseForSyncPromoURL(const GURL& url); |
| 73 | 73 |
| 74 // Returns true if chrome should use the web-based sign in flow, false if | 74 // Returns true if chrome should use the web-based sign in flow, false if |
| 75 // chrome should use the ClientLogin flow. This function will return true | 75 // chrome should use the ClientLogin flow. This function will return true |
| 76 // only for platforms where |ENABLE_ONE_CLICK_SIGNIN| is defined. | 76 // only for platforms where |ENABLE_ONE_CLICK_SIGNIN| is defined. |
| 77 static bool UseWebBasedSigninFlow(); | 77 static bool UseWebBasedSigninFlow(); |
| 78 | 78 |
| 79 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only. | 79 // Forces UseWebBasedSigninFlow() to return true when set; used in tests only. |
| 80 static void ForceWebBasedSigninFlowForTesting(bool force); | 80 static void ForceWebBasedSigninFlowForTesting(bool force); |
| 81 | 81 |
| 82 static bool IsWebBasedSigninFlowURL(const GURL& url); |
| 83 |
| 82 private: | 84 private: |
| 83 DISALLOW_COPY_AND_ASSIGN(SyncPromoUI); | 85 DISALLOW_COPY_AND_ASSIGN(SyncPromoUI); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ | 88 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ |
| OLD | NEW |