Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / sync_driver / signin_manager_wrapper.cc
blob4468027c3af05e96625031a9c019af85f089b599
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.
5 #include "components/sync_driver/signin_manager_wrapper.h"
7 #include "components/signin/core/browser/signin_manager_base.h"
8 #include "google_apis/gaia/gaia_constants.h"
10 SigninManagerWrapper::SigninManagerWrapper(SigninManagerBase* original)
11 : original_(original) {}
13 SigninManagerWrapper::~SigninManagerWrapper() {}
15 SigninManagerBase* SigninManagerWrapper::GetOriginal() {
16 return original_;
19 std::string SigninManagerWrapper::GetEffectiveUsername() const {
20 return original_->GetAuthenticatedAccountInfo().email;
23 std::string SigninManagerWrapper::GetAccountIdToUse() const {
24 return original_->GetAuthenticatedAccountId();
27 std::string SigninManagerWrapper::GetSyncScopeToUse() const {
28 return GaiaConstants::kChromeSyncOAuth2Scope;