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

Side by Side Diff: components/browser_sync/profile_sync_components_factory_impl.h

Issue 2568743004: [Sync] Stop deleting LevelDB files when deleting Directory (Closed)
Patch Set: Updated for Max's comments. Created 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 69 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
70 debug_info_listener, 70 debug_info_listener,
71 const syncer::DataTypeController::TypeMap* controllers, 71 const syncer::DataTypeController::TypeMap* controllers,
72 const syncer::DataTypeEncryptionHandler* encryption_handler, 72 const syncer::DataTypeEncryptionHandler* encryption_handler,
73 syncer::ModelTypeConfigurer* configurer, 73 syncer::ModelTypeConfigurer* configurer,
74 syncer::DataTypeManagerObserver* observer) override; 74 syncer::DataTypeManagerObserver* observer) override;
75 syncer::SyncEngine* CreateSyncEngine( 75 syncer::SyncEngine* CreateSyncEngine(
76 const std::string& name, 76 const std::string& name,
77 invalidation::InvalidationService* invalidator, 77 invalidation::InvalidationService* invalidator,
78 const base::WeakPtr<syncer::SyncPrefs>& sync_prefs, 78 const base::WeakPtr<syncer::SyncPrefs>& sync_prefs,
79 const base::FilePath& sync_folder) override; 79 const base::FilePath& sync_data_folder) override;
80 std::unique_ptr<syncer::LocalDeviceInfoProvider> 80 std::unique_ptr<syncer::LocalDeviceInfoProvider>
81 CreateLocalDeviceInfoProvider() override; 81 CreateLocalDeviceInfoProvider() override;
82 std::unique_ptr<syncer::AttachmentService> CreateAttachmentService( 82 std::unique_ptr<syncer::AttachmentService> CreateAttachmentService(
83 std::unique_ptr<syncer::AttachmentStoreForSync> attachment_store, 83 std::unique_ptr<syncer::AttachmentStoreForSync> attachment_store,
84 const syncer::UserShare& user_share, 84 const syncer::UserShare& user_share,
85 const std::string& store_birthday, 85 const std::string& store_birthday,
86 syncer::ModelType model_type, 86 syncer::ModelType model_type,
87 syncer::AttachmentService::Delegate* delegate) override; 87 syncer::AttachmentService::Delegate* delegate) override;
88 syncer::SyncApiComponentFactory::SyncComponents CreateBookmarkSyncComponents( 88 syncer::SyncApiComponentFactory::SyncComponents CreateBookmarkSyncComponents(
89 syncer::SyncService* sync_service, 89 syncer::SyncService* sync_service,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Whether to override PREFERENCES to use USS. 125 // Whether to override PREFERENCES to use USS.
126 static bool override_prefs_controller_to_uss_for_test_; 126 static bool override_prefs_controller_to_uss_for_test_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); 128 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl);
129 }; 129 };
130 130
131 } // namespace browser_sync 131 } // namespace browser_sync
132 132
133 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 133 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698