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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_helper.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: rebased 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_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_
6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Initialize a finch experiment for the infobar. 90 // Initialize a finch experiment for the infobar.
91 static void InitializeFieldTrial(); 91 static void InitializeFieldTrial();
92 92
93 // Looks for the Google-Accounts-SignIn response header, and if found, 93 // Looks for the Google-Accounts-SignIn response header, and if found,
94 // tries to display an infobar in the tab contents identified by the 94 // tries to display an infobar in the tab contents identified by the
95 // child/route id. 95 // child/route id.
96 static void ShowInfoBarIfPossible(net::URLRequest* request, 96 static void ShowInfoBarIfPossible(net::URLRequest* request,
97 int child_id, 97 int child_id,
98 int route_id); 98 int route_id);
99 99
100 // Returns true if a web-based sign in flow should be used.
101 static bool UseWebBasedSigninFlow();
102
100 private: 103 private:
101 explicit OneClickSigninHelper(content::WebContents* web_contents); 104 explicit OneClickSigninHelper(content::WebContents* web_contents);
102 friend class content::WebContentsUserData<OneClickSigninHelper>; 105 friend class content::WebContentsUserData<OneClickSigninHelper>;
103 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, CanOfferOnIOThread); 106 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, CanOfferOnIOThread);
104 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, 107 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest,
105 CanOfferOnIOThreadIncognito); 108 CanOfferOnIOThreadIncognito);
106 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, 109 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest,
107 CanOfferOnIOThreadNoIOData); 110 CanOfferOnIOThreadNoIOData);
108 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, 111 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest,
109 CanOfferOnIOThreadBadURL); 112 CanOfferOnIOThreadBadURL);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 AutoAccept auto_accept_; 168 AutoAccept auto_accept_;
166 SyncPromoUI::Source source_; 169 SyncPromoUI::Source source_;
167 std::string error_message_; 170 std::string error_message_;
168 171
169 scoped_ptr<SigninTracker> signin_tracker_; 172 scoped_ptr<SigninTracker> signin_tracker_;
170 173
171 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); 174 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper);
172 }; 175 };
173 176
174 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ 177 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698