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

Side by Side Diff: chrome/browser/ui/webui/sync_promo/sync_promo_ui.h

Issue 11316299: Enable web-based sign in flow by default. Can use command line argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix BiDi tests and indent Created 8 years 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/bidi_checker_web_ui_test.cc ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698