OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/sync_driver/signin_manager_wrapper.h" | |
6 | |
7 #include "components/signin/core/browser/signin_manager_base.h" | |
8 #include "google_apis/gaia/gaia_constants.h" | |
9 | |
10 SigninManagerWrapper::SigninManagerWrapper(SigninManagerBase* original) | |
11 : original_(original) {} | |
12 | |
13 SigninManagerWrapper::~SigninManagerWrapper() {} | |
14 | |
15 SigninManagerBase* SigninManagerWrapper::GetOriginal() { | |
16 return original_; | |
17 } | |
18 | |
19 std::string SigninManagerWrapper::GetEffectiveUsername() const { | |
20 return original_->GetAuthenticatedAccountInfo().email; | |
21 } | |
22 | |
23 std::string SigninManagerWrapper::GetAccountIdToUse() const { | |
24 return original_->GetAuthenticatedAccountId(); | |
25 } | |
26 | |
27 std::string SigninManagerWrapper::GetSyncScopeToUse() const { | |
28 return GaiaConstants::kChromeSyncOAuth2Scope; | |
29 } | |
OLD | NEW |