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

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

Issue 23068005: Convert UserPolicySigninService to use OAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698