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

Unified Diff: chrome/browser/sync/fake_oauth2_token_service_for_sync.cc

Issue 136723009: Move UbertokenFetcher from //chrome to //google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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/sync/fake_oauth2_token_service_for_sync.cc
diff --git a/chrome/browser/sync/fake_oauth2_token_service.cc b/chrome/browser/sync/fake_oauth2_token_service_for_sync.cc
similarity index 76%
rename from chrome/browser/sync/fake_oauth2_token_service.cc
rename to chrome/browser/sync/fake_oauth2_token_service_for_sync.cc
index 6ce1a6cc3ee7271f7d8938a83aee5cdf0abe796e..c3737a5fedf20126805893f22a247f15c1304d8f 100644
--- a/chrome/browser/sync/fake_oauth2_token_service.cc
+++ b/chrome/browser/sync/fake_oauth2_token_service_for_sync.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/sync/fake_oauth2_token_service.h"
+#include "chrome/browser/sync/fake_oauth2_token_service_for_sync.h"
#include "base/message_loop/message_loop.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_context.h"
-void FakeOAuth2TokenService::FetchOAuth2Token(
+void FakeOAuth2TokenServiceForSync::FetchOAuth2Token(
OAuth2TokenService::RequestImpl* request,
const std::string& account_id,
net::URLRequestContextGetter* getter,
@@ -24,7 +24,7 @@ void FakeOAuth2TokenService::FetchOAuth2Token(
base::Time::Max()));
}
-void FakeOAuth2TokenService::UpdateCredentials(
+void FakeOAuth2TokenServiceForSync::UpdateCredentials(
const std::string& account_id,
const std::string& refresh_token) {
account_id_ = account_id;
@@ -32,16 +32,16 @@ void FakeOAuth2TokenService::UpdateCredentials(
FireRefreshTokenAvailable(account_id);
}
-bool FakeOAuth2TokenService::RefreshTokenIsAvailable(
+bool FakeOAuth2TokenServiceForSync::RefreshTokenIsAvailable(
const std::string& account_id) {
return account_id_ == account_id && !refresh_token_.empty();
}
-BrowserContextKeyedService* FakeOAuth2TokenService::BuildTokenService(
+BrowserContextKeyedService* FakeOAuth2TokenServiceForSync::BuildTokenService(
content::BrowserContext* context) {
Profile* profile = static_cast<Profile*>(context);
- FakeOAuth2TokenService* service = new FakeOAuth2TokenService();
+ FakeOAuth2TokenServiceForSync* service = new FakeOAuth2TokenServiceForSync();
service->Initialize(profile);
return service;
}

Powered by Google App Engine
This is Rietveld 408576698