Chromium Code Reviews| 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..b2db98af761dba88828b9f6a9d4623193e5324ec |
| --- /dev/null |
| +++ b/blimp/client/support/session/blimp_default_identity_provider.cc |
| @@ -0,0 +1,37 @@ |
| +// 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 { |
|
David Trainor- moved to gerrit
2016/09/26 20:54:26
I'd put this inside the client{} namespace also (o
steimel
2016/09/27 17:35:01
Done.
|
| +constexpr char kDummyAccountId[] = ""; |
|
David Trainor- moved to gerrit
2016/09/26 20:54:26
Should we give this a value? Is "" anything speci
steimel
2016/09/27 17:35:01
"" is nothing special. This isn't ever looked at a
David Trainor- moved to gerrit
2016/09/27 17:40:37
I think this is fine as long as the IdentityProvid
steimel
2016/09/27 18:26:11
Looks like IdentitySource uses a check to see if a
|
| +} // namespace |
| + |
| +namespace client { |
| + |
| +BlimpDefaultIdentityProvider::BlimpDefaultIdentityProvider() {} |
| + |
| +BlimpDefaultIdentityProvider::~BlimpDefaultIdentityProvider() {} |
|
David Trainor- moved to gerrit
2016/09/26 20:54:26
= default. Same for constructor if C++ allows it
steimel
2016/09/27 17:35:01
Done.
|
| + |
| +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 |