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

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

Issue 12374007: signin: force web signin flow initiated visits to accounts.google.com to their own process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698