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

Unified Diff: google_apis/gaia/dummy_identity_provider.h

Issue 330733002: Move IdentityProvider usage from GCMDriverDesktop to GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix after sync Created 6 years, 6 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
« no previous file with comments | « google_apis/BUILD.gn ('k') | google_apis/gaia/dummy_identity_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/dummy_identity_provider.h
diff --git a/google_apis/gaia/dummy_identity_provider.h b/google_apis/gaia/dummy_identity_provider.h
deleted file mode 100644
index 38624a9a3507e935763539de161f61560192c147..0000000000000000000000000000000000000000
--- a/google_apis/gaia/dummy_identity_provider.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef GOOGLE_APIS_GAIA_DUMMY_IDENTITY_PROVIDER_H_
-#define GOOGLE_APIS_GAIA_DUMMY_IDENTITY_PROVIDER_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "google_apis/gaia/identity_provider.h"
-
-// GCMDriverDesktop depends on IdentityProvider as it was originally meant to
-// work for signed-in users only. This dependency is being removed. While it is
-// still present, DummyIdentityProvider will be used for the browser-global
-// GCMDriver instance. The DummyIdentityProvider never has any active user or
-// tokens.
-// TODO(bartfab,jianli): Remove this class when GCMDriverDesktop no longer
-// depends on IdentityService.
-class DummyIdentityProvider : public IdentityProvider {
- public:
- DummyIdentityProvider();
- virtual ~DummyIdentityProvider();
-
- // IdentityProvider:
- virtual std::string GetActiveUsername() OVERRIDE;
- virtual std::string GetActiveAccountId() OVERRIDE;
- virtual OAuth2TokenService* GetTokenService() OVERRIDE;
- virtual bool RequestLogin() OVERRIDE;
-
- private:
- class DummyOAuth2TokenService;
-
- scoped_ptr<DummyOAuth2TokenService> oauth2_token_service_;
-
- DISALLOW_COPY_AND_ASSIGN(DummyIdentityProvider);
-};
-
-#endif // GOOGLE_APIS_GAIA_FAKE_IDENTITY_PROVIDER_H_
« no previous file with comments | « google_apis/BUILD.gn ('k') | google_apis/gaia/dummy_identity_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698