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

Unified Diff: chrome/browser/google_apis/auth_service_interface.h

Issue 19511002: Change google_api::RequestSender to take an AuthService instead of a Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/google_apis/auth_service_interface.h
diff --git a/chrome/browser/google_apis/auth_service_interface.h b/chrome/browser/google_apis/auth_service_interface.h
index e8c239517ed2d091ff0398a3fa693204de79409c..faf9659916d8275d73be6dd67c81a2b0c44b309c 100644
--- a/chrome/browser/google_apis/auth_service_interface.h
+++ b/chrome/browser/google_apis/auth_service_interface.h
@@ -26,15 +26,13 @@ typedef base::Callback<void(GDataErrorCode error,
// All functions must be called on UI thread.
class AuthServiceInterface {
public:
+ virtual ~AuthServiceInterface() {}
+
// Adds and removes the observer. AddObserver() should be called before
// Initialize() as it can change the refresh token.
virtual void AddObserver(AuthServiceObserver* observer) = 0;
virtual void RemoveObserver(AuthServiceObserver* observer) = 0;
- // Initializes the auth service. Starts TokenService to retrieve the
- // refresh token.
- virtual void Initialize(Profile* profile) = 0;
-
// Starts fetching OAuth2 access token from the refresh token.
// |callback| must not be null.
virtual void StartAuthentication(const AuthStatusCallback& callback) = 0;
« no previous file with comments | « chrome/browser/google_apis/auth_service.cc ('k') | chrome/browser/google_apis/base_requests_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698