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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_helper.h

Issue 14175017: Remove one-click signin inforbar, since its now replaced with the gaia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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_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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const std::string& email, 95 const std::string& email,
96 std::string* error_message); 96 std::string* error_message);
97 97
98 // Returns true if the one-click signin feature can be offered at this time. 98 // Returns true if the one-click signin feature can be offered at this time.
99 // It can be offered if the io_data is not in an incognito window and if the 99 // It can be offered if the io_data is not in an incognito window and if the
100 // origin of |url| is a valid Gaia sign in origin. This function is meant 100 // origin of |url| is a valid Gaia sign in origin. This function is meant
101 // to called only from the IO thread. 101 // to called only from the IO thread.
102 static Offer CanOfferOnIOThread(net::URLRequest* request, 102 static Offer CanOfferOnIOThread(net::URLRequest* request,
103 ProfileIOData* io_data); 103 ProfileIOData* io_data);
104 104
105 // Initialize a finch experiment for the infobar.
106 static void InitializeFieldTrial();
107
108 // Looks for the Google-Accounts-SignIn response header, and if found, 105 // Looks for the Google-Accounts-SignIn response header, and if found,
109 // tries to display an infobar in the tab contents identified by the 106 // tries to display an infobar in the tab contents identified by the
110 // child/route id. 107 // child/route id.
111 static void ShowInfoBarIfPossible(net::URLRequest* request, 108 static void ShowInfoBarIfPossible(net::URLRequest* request,
112 ProfileIOData* io_data, 109 ProfileIOData* io_data,
113 int child_id, 110 int child_id,
114 int route_id); 111 int route_id);
115 112
116 // Remove the item currently at the top of the history list. Due to 113 // Remove the item currently at the top of the history list. Due to
117 // limitations of the NavigationController, this cannot be done until 114 // limitations of the NavigationController, this cannot be done until
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 236
240 // Whether a Gaia URL during the sign in process was not handled by the 237 // Whether a Gaia URL during the sign in process was not handled by the
241 // dedicated sign in process. This is set to false if at least one such 238 // dedicated sign in process. This is set to false if at least one such
242 // URL is detected. 239 // URL is detected.
243 bool is_trusted_; 240 bool is_trusted_;
244 241
245 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); 242 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper);
246 }; 243 };
247 244
248 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ 245 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/infobars/infobar_delegate.h ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698