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

Unified Diff: chrome/browser/signin/fake_profile_oauth2_token_service.h

Issue 489113003: Remove MutableProfileOAuth2TokenService on iOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/fake_profile_oauth2_token_service.h
diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service.h b/chrome/browser/signin/fake_profile_oauth2_token_service.h
index 3a3523085ce31847da48ee26ad5650c7077e3ce8..e0eccee831149c189c6a02dedc9ffd2cef7b59e9 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service.h
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service.h
@@ -13,6 +13,8 @@
#if defined(OS_ANDROID)
#include "chrome/browser/signin/android_profile_oauth2_token_service.h"
+#elif defined(OS_IOS)
+#include "components/signin/ios/browser/profile_oauth2_token_service_ios.h"
#else
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#endif
@@ -40,6 +42,8 @@
class FakeProfileOAuth2TokenService
#if defined(OS_ANDROID)
: public AndroidProfileOAuth2TokenService {
+#elif defined(OS_IOS)
+ : public ProfileOAuth2TokenServiceIOS {
#else
: public ProfileOAuth2TokenService {
#endif
@@ -135,6 +139,11 @@ class FakeProfileOAuth2TokenService
virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
+#if defined(OS_IOS)
+ virtual void AddOrUpdateAccount(const std::string& account_id) OVERRIDE;
+ virtual void RemoveAccount(const std::string& account_id) OVERRIDE;
+#endif
Roger Tawa OOO till Jul 10th 2014/08/20 15:43:57 Don't you need to define these functions in the cc
+
private:
// Helper function to complete pending requests - if |all_scopes| is true,
// then all pending requests are completed, otherwise, only those requests
« no previous file with comments | « no previous file | components/components_tests.gyp » ('j') | components/signin/ios/browser/profile_oauth2_token_service_ios.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698