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

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

Issue 2451843002: Add Store+Sync to reading list. (Closed)
Patch Set: experimental_flags Created 4 years, 1 month 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 #include "components/browser_sync/profile_sync_components_factory_impl.h" 5 #include "components/browser_sync/profile_sync_components_factory_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/debug/dump_without_crashing.h" 9 #include "base/debug/dump_without_crashing.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 base::MakeUnique<UIDataTypeController>(syncer::PRIORITY_PREFERENCES, 275 base::MakeUnique<UIDataTypeController>(syncer::PRIORITY_PREFERENCES,
276 error_callback, sync_client_)); 276 error_callback, sync_client_));
277 } 277 }
278 278
279 // Article sync is disabled by default. Register only if explicitly enabled. 279 // Article sync is disabled by default. Register only if explicitly enabled.
280 if (dom_distiller::IsEnableSyncArticlesSet()) { 280 if (dom_distiller::IsEnableSyncArticlesSet()) {
281 sync_service->RegisterDataTypeController( 281 sync_service->RegisterDataTypeController(
282 base::MakeUnique<UIDataTypeController>(syncer::ARTICLES, error_callback, 282 base::MakeUnique<UIDataTypeController>(syncer::ARTICLES, error_callback,
283 sync_client_)); 283 sync_client_));
284 } 284 }
285 // Article sync is disabled by default. Register only if explicitly enabled.
286 if (!disabled_types.Has(syncer::READING_LIST)) {
287 sync_service->RegisterDataTypeController(
288 base::MakeUnique<ModelTypeController>(
289 syncer::READING_LIST, base::Bind(&base::debug::DumpWithoutCrashing),
290 sync_client_, base::ThreadTaskRunnerHandle::Get()));
291 }
285 } 292 }
286 293
287 DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager( 294 DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager(
288 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 295 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
289 debug_info_listener, 296 debug_info_listener,
290 const DataTypeController::TypeMap* controllers, 297 const DataTypeController::TypeMap* controllers,
291 const syncer::DataTypeEncryptionHandler* encryption_handler, 298 const syncer::DataTypeEncryptionHandler* encryption_handler,
292 syncer::SyncBackendHost* backend, 299 syncer::SyncBackendHost* backend,
293 DataTypeManagerObserver* observer) { 300 DataTypeManagerObserver* observer) {
294 return new DataTypeManagerImpl(debug_info_listener, controllers, 301 return new DataTypeManagerImpl(debug_info_listener, controllers,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 425
419 // static 426 // static
420 void ProfileSyncComponentsFactoryImpl::OverridePrefsForUssTest(bool use_uss) { 427 void ProfileSyncComponentsFactoryImpl::OverridePrefsForUssTest(bool use_uss) {
421 override_prefs_controller_to_uss_for_test_ = use_uss; 428 override_prefs_controller_to_uss_for_test_ = use_uss;
422 } 429 }
423 430
424 bool ProfileSyncComponentsFactoryImpl:: 431 bool ProfileSyncComponentsFactoryImpl::
425 override_prefs_controller_to_uss_for_test_ = false; 432 override_prefs_controller_to_uss_for_test_ = false;
426 433
427 } // namespace browser_sync 434 } // namespace browser_sync
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/prefs/BUILD.gn » ('j') | ios/chrome/browser/reading_list/reading_list_model.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698