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

Side by Side Diff: components/sync_driver/profile_sync_auth_provider.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/profile_sync_auth_provider.h" 5 #include "components/sync_driver/profile_sync_auth_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void ProfileSyncAuthProvider::InvalidateAccessToken(const std::string& token) { 127 void ProfileSyncAuthProvider::InvalidateAccessToken(const std::string& token) {
128 DCHECK(CalledOnValidThread()); 128 DCHECK(CalledOnValidThread());
129 token_service_->InvalidateAccessToken(account_id_, oauth2_scope_, token); 129 token_service_->InvalidateAccessToken(account_id_, oauth2_scope_, token);
130 } 130 }
131 131
132 scoped_ptr<syncer::SyncAuthProvider> 132 scoped_ptr<syncer::SyncAuthProvider>
133 ProfileSyncAuthProvider::CreateProviderForSyncThread() { 133 ProfileSyncAuthProvider::CreateProviderForSyncThread() {
134 DCHECK(CalledOnValidThread()); 134 DCHECK(CalledOnValidThread());
135 scoped_ptr<syncer::SyncAuthProvider> auth_provider(new SyncThreadProxy( 135 scoped_ptr<syncer::SyncAuthProvider> auth_provider(new SyncThreadProxy(
136 weak_factory_.GetWeakPtr(), base::ThreadTaskRunnerHandle::Get())); 136 weak_factory_.GetWeakPtr(), base::ThreadTaskRunnerHandle::Get()));
137 return auth_provider.Pass(); 137 return auth_provider;
138 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698