| OLD | NEW |
| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 OneClickSigninSyncStarter::Callback sync_callback); | 225 OneClickSigninSyncStarter::Callback sync_callback); |
| 226 | 226 |
| 227 static void RedirectToNtpOrAppsPage( | 227 static void RedirectToNtpOrAppsPage( |
| 228 content::WebContents* contents, signin::Source source); | 228 content::WebContents* contents, signin::Source source); |
| 229 | 229 |
| 230 // If the |source| is not settings page/webstore, redirects to | 230 // If the |source| is not settings page/webstore, redirects to |
| 231 // the NTP/Apps page. | 231 // the NTP/Apps page. |
| 232 static void RedirectToNtpOrAppsPageIfNecessary( | 232 static void RedirectToNtpOrAppsPageIfNecessary( |
| 233 content::WebContents* contents, signin::Source source); | 233 content::WebContents* contents, signin::Source source); |
| 234 | 234 |
| 235 static void ShowSigninErrorBubble(Browser* browser, const std::string& error); | |
| 236 | |
| 237 // Remove the item currently at the top of the history list if it's | 235 // Remove the item currently at the top of the history list if it's |
| 238 // the Gaia redirect URL. Due to limitations of the NavigationController | 236 // the Gaia redirect URL. Due to limitations of the NavigationController |
| 239 // this cannot be done until a new page becomes "current". | 237 // this cannot be done until a new page becomes "current". |
| 240 static void RemoveSigninRedirectURLHistoryItem( | 238 static void RemoveSigninRedirectURLHistoryItem( |
| 241 content::WebContents* web_contents); | 239 content::WebContents* web_contents); |
| 242 | 240 |
| 243 static void LogConfirmHistogramValue(int action); | 241 static void LogConfirmHistogramValue(int action); |
| 244 | 242 |
| 245 private: | 243 private: |
| 246 friend class content::WebContentsUserData<OneClickSigninHelper>; | 244 friend class content::WebContentsUserData<OneClickSigninHelper>; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 383 |
| 386 // Allows unittest to avoid starting sync for real. | 384 // Allows unittest to avoid starting sync for real. |
| 387 bool do_not_start_sync_for_testing_; | 385 bool do_not_start_sync_for_testing_; |
| 388 | 386 |
| 389 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; | 387 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; |
| 390 | 388 |
| 391 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); | 389 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |
| 392 }; | 390 }; |
| 393 | 391 |
| 394 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 392 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| OLD | NEW |