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

Side by Side Diff: chrome/browser/sync_file_system/remote_file_sync_service.cc

Issue 660873002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/sync_file_system/remote_file_sync_service.h" 5 #include "chrome/browser/sync_file_system/remote_file_sync_service.h"
6 6
7 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" 7 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h"
8 8
9 namespace sync_file_system { 9 namespace sync_file_system {
10 10
11 scoped_ptr<RemoteFileSyncService> 11 scoped_ptr<RemoteFileSyncService>
12 RemoteFileSyncService::CreateForBrowserContext( 12 RemoteFileSyncService::CreateForBrowserContext(
13 content::BrowserContext* context, 13 content::BrowserContext* context,
14 TaskLogger* task_logger) { 14 TaskLogger* task_logger) {
15 return drive_backend::SyncEngine::CreateForBrowserContext( 15 return drive_backend::SyncEngine::CreateForBrowserContext(context,
16 context, task_logger).PassAs<RemoteFileSyncService>(); 16 task_logger);
17 } 17 }
18 18
19 void RemoteFileSyncService::AppendDependsOnFactories( 19 void RemoteFileSyncService::AppendDependsOnFactories(
20 std::set<BrowserContextKeyedServiceFactory*>* factories) { 20 std::set<BrowserContextKeyedServiceFactory*>* factories) {
21 drive_backend::SyncEngine::AppendDependsOnFactories(factories); 21 drive_backend::SyncEngine::AppendDependsOnFactories(factories);
22 } 22 }
23 23
24 } // namespace sync_file_system 24 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698