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

Side by Side Diff: components/sync/driver/signin_manager_wrapper.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW
« no previous file with comments | « components/sync/driver/signin_manager_wrapper.h ('k') | components/sync/driver/startup_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698