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

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

Issue 213473008: [SyncFS] Split SyncEngine and SyncEngineContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 9 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/drive/drive_uploader.h"
8 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
7 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" 9 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h"
8 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_servi ce.h" 10 #include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_servi ce.h"
9 11
10 namespace sync_file_system { 12 namespace sync_file_system {
11 13
12 scoped_ptr<RemoteFileSyncService> 14 scoped_ptr<RemoteFileSyncService>
13 RemoteFileSyncService::CreateForBrowserContext( 15 RemoteFileSyncService::CreateForBrowserContext(
14 BackendVersion version, 16 BackendVersion version,
15 content::BrowserContext* context) { 17 content::BrowserContext* context) {
16 switch (version) { 18 switch (version) {
(...skipping 16 matching lines...) Expand all
33 DriveFileSyncService::AppendDependsOnFactories(factories); 35 DriveFileSyncService::AppendDependsOnFactories(factories);
34 return; 36 return;
35 case V2: 37 case V2:
36 drive_backend::SyncEngine::AppendDependsOnFactories(factories); 38 drive_backend::SyncEngine::AppendDependsOnFactories(factories);
37 return; 39 return;
38 } 40 }
39 NOTREACHED() << "Unknown version " << version; 41 NOTREACHED() << "Unknown version " << version;
40 } 42 }
41 43
42 } // namespace sync_file_system 44 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698