| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // the Gaia redirect URL. Due to limitations of the NavigationController | 118 // the Gaia redirect URL. Due to limitations of the NavigationController |
| 119 // this cannot be done until a new page becomes "current". | 119 // this cannot be done until a new page becomes "current". |
| 120 static void RemoveSigninRedirectURLHistoryItem( | 120 static void RemoveSigninRedirectURLHistoryItem( |
| 121 content::WebContents* web_contents); | 121 content::WebContents* web_contents); |
| 122 | 122 |
| 123 static void LogConfirmHistogramValue(int action); | 123 static void LogConfirmHistogramValue(int action); |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 friend class content::WebContentsUserData<OneClickSigninHelper>; | 126 friend class content::WebContentsUserData<OneClickSigninHelper>; |
| 127 friend class OneClickSigninHelperTest; | 127 friend class OneClickSigninHelperTest; |
| 128 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 128 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIncognitoTest, |
| 129 ShowInfoBarUIThreadIncognito); | 129 ShowInfoBarUIThreadIncognito); |
| 130 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 130 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, |
| 131 SigninFromWebstoreWithConfigSyncfirst); | 131 SigninFromWebstoreWithConfigSyncfirst); |
| 132 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 132 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, |
| 133 ShowSigninBubbleAfterSigninComplete); | 133 ShowSigninBubbleAfterSigninComplete); |
| 134 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninCancelled); | 134 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninCancelled); |
| 135 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninFailed); | 135 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, SigninFailed); |
| 136 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, | 136 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperTest, |
| 137 CleanTransientStateOnNavigate); | 137 CleanTransientStateOnNavigate); |
| 138 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, CanOfferOnIOThread); | 138 FRIEND_TEST_ALL_PREFIXES(OneClickSigninHelperIOTest, CanOfferOnIOThread); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // Allows unittests to avoid accessing the ResourceContext for clearing a | 264 // Allows unittests to avoid accessing the ResourceContext for clearing a |
| 265 // pending e-mail. | 265 // pending e-mail. |
| 266 bool do_not_clear_pending_email_; | 266 bool do_not_clear_pending_email_; |
| 267 | 267 |
| 268 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; | 268 base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; |
| 269 | 269 |
| 270 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); | 270 DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ | 273 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_HELPER_H_ |
| OLD | NEW |