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

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
(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 }
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