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

Unified Diff: blimp/client/support/session/blimp_default_identity_provider.cc

Issue 2363153002: Migrate Linux Blimp client to use BlimpClientContext (Closed)
Patch Set: Fix dependency issue found by gn check Created 4 years, 3 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 | « blimp/client/support/session/blimp_default_identity_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/support/session/blimp_default_identity_provider.cc
diff --git a/blimp/client/support/session/blimp_default_identity_provider.cc b/blimp/client/support/session/blimp_default_identity_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f66b3df567c2d4485125e7c041219ee9f811d27f
--- /dev/null
+++ b/blimp/client/support/session/blimp_default_identity_provider.cc
@@ -0,0 +1,36 @@
+// Copyright 2016 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.
+
+#include "blimp/client/support/session/blimp_default_identity_provider.h"
+
+#include "google_apis/gaia/oauth2_token_service.h"
+
+namespace blimp {
+namespace client {
+namespace {
+constexpr char kDummyAccountId[] = "DummyAccountId";
+} // namespace
+
+BlimpDefaultIdentityProvider::BlimpDefaultIdentityProvider() = default;
+
+BlimpDefaultIdentityProvider::~BlimpDefaultIdentityProvider() = default;
+
+std::string BlimpDefaultIdentityProvider::GetActiveUsername() {
+ return kDummyAccountId;
+}
+
+std::string BlimpDefaultIdentityProvider::GetActiveAccountId() {
+ return kDummyAccountId;
+}
+
+OAuth2TokenService* BlimpDefaultIdentityProvider::GetTokenService() {
+ return nullptr;
+}
+
+bool BlimpDefaultIdentityProvider::RequestLogin() {
+ return false;
+}
+
+} // namespace client
+} // namespace blimp
« no previous file with comments | « blimp/client/support/session/blimp_default_identity_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698