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

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

Issue 16172007: Show email confirmation for sign in from the hot-dog menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Upload before commit Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // when the sign process is over and to collect infomation from the user 182 // when the sign process is over and to collect infomation from the user
183 // entered on the Gaia sign in page (for explicit sign ins). 183 // entered on the Gaia sign in page (for explicit sign ins).
184 static void ShowInfoBarUIThread(const std::string& session_index, 184 static void ShowInfoBarUIThread(const std::string& session_index,
185 const std::string& email, 185 const std::string& email,
186 AutoAccept auto_accept, 186 AutoAccept auto_accept,
187 SyncPromoUI::Source source, 187 SyncPromoUI::Source source,
188 const GURL& continue_url, 188 const GURL& continue_url,
189 int child_id, 189 int child_id,
190 int route_id); 190 int route_id);
191 191
192 void RedirectToNtpOrAppsPage();
193 void RedirectToSignin(); 192 void RedirectToSignin();
194 void ShowSigninErrorBubble(Browser* browser, const std::string& error); 193 void ShowSigninErrorBubble(Browser* browser, const std::string& error);
195 194
196 // Clear all data member of the helper, except for the error. 195 // Clear all data member of the helper, except for the error.
197 void CleanTransientState(); 196 void CleanTransientState();
198 197
199 // Unitests that use a TestingProfile should call this. 198 // Unitests that use a TestingProfile should call this.
200 // Otherwise, clearing the pending e-mail crashes because the code expects 199 // Otherwise, clearing the pending e-mail crashes because the code expects
201 // a real ResourceContext rather than the MockResourceContext a 200 // a real ResourceContext rather than the MockResourceContext a
202 // TestingProfile provides. 201 // TestingProfile provides.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 bool untrusted_confirmation_required_; 248 bool untrusted_confirmation_required_;
250 249
251 // Allows unittests to avoid accessing the ResourceContext for clearing a 250 // Allows unittests to avoid accessing the ResourceContext for clearing a
252 // pending e-mail. 251 // pending e-mail.
253 bool do_not_clear_pending_email_; 252 bool do_not_clear_pending_email_;
254 253
255 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); 254 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper);
256 }; 255 };
257 256
258 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ 257 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698