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