Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / signin / fake_profile_oauth2_token_service.cc
index e1842eb..9fc6aa0 100644 (file)
@@ -13,23 +13,6 @@ FakeProfileOAuth2TokenService::PendingRequest::PendingRequest() {
 FakeProfileOAuth2TokenService::PendingRequest::~PendingRequest() {
 }
 
-// static
-BrowserContextKeyedService* FakeProfileOAuth2TokenService::Build(
-    content::BrowserContext* profile) {
-  FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
-  service->Initialize(reinterpret_cast<Profile*>(profile));
-  return service;
-}
-
-BrowserContextKeyedService*
-FakeProfileOAuth2TokenService::BuildAutoIssuingTokenService(
-    content::BrowserContext* profile) {
-  FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
-  service->set_auto_post_fetch_response_on_message_loop(true);
-  service->Initialize(reinterpret_cast<Profile*>(profile));
-  return service;
-}
-
 FakeProfileOAuth2TokenService::FakeProfileOAuth2TokenService()
     : auto_post_fetch_response_on_message_loop_(false) {
   SigninAccountIdHelper::SetDisableForTest(true);
@@ -44,6 +27,12 @@ bool FakeProfileOAuth2TokenService::RefreshTokenIsAvailable(
   return !GetRefreshToken(account_id).empty();
 }
 
+void FakeProfileOAuth2TokenService::LoadCredentials(
+    const std::string& primary_account_id) {
+  // Empty implementation as FakeProfileOAuth2TokenService does not have any
+  // credentials to load.
+}
+
 std::vector<std::string> FakeProfileOAuth2TokenService::GetAccounts() {
   std::vector<std::string> account_ids;
   for (std::map<std::string, std::string>::const_iterator iter =
@@ -152,6 +141,11 @@ std::string FakeProfileOAuth2TokenService::GetRefreshToken(
       std::string();
 }
 
+net::URLRequestContextGetter*
+FakeProfileOAuth2TokenService::GetRequestContext() {
+  return NULL;
+}
+
 std::vector<FakeProfileOAuth2TokenService::PendingRequest>
 FakeProfileOAuth2TokenService::GetPendingRequests() {
   std::vector<PendingRequest> valid_requests;