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

Side by Side Diff: chrome/browser/sync/chrome_sync_client.cc

Issue 2460903003: [Sync] Rename DeviceInfoService to DeviceInfoSyncBridge. (Closed)
Patch Set: Updating nullptr to null in comment. 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
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/chrome_sync_client.h" 5 #include "chrome/browser/sync/chrome_sync_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 NOTREACHED(); 424 NOTREACHED();
425 return base::WeakPtr<syncer::SyncableService>(); 425 return base::WeakPtr<syncer::SyncableService>();
426 } 426 }
427 } 427 }
428 428
429 base::WeakPtr<syncer::ModelTypeSyncBridge> 429 base::WeakPtr<syncer::ModelTypeSyncBridge>
430 ChromeSyncClient::GetSyncBridgeForModelType(syncer::ModelType type) { 430 ChromeSyncClient::GetSyncBridgeForModelType(syncer::ModelType type) {
431 switch (type) { 431 switch (type) {
432 case syncer::DEVICE_INFO: 432 case syncer::DEVICE_INFO:
433 return ProfileSyncServiceFactory::GetForProfile(profile_) 433 return ProfileSyncServiceFactory::GetForProfile(profile_)
434 ->GetDeviceInfoService() 434 ->GetDeviceInfoSyncBridge()
435 ->AsWeakPtr(); 435 ->AsWeakPtr();
436 default: 436 default:
437 NOTREACHED(); 437 NOTREACHED();
438 return base::WeakPtr<syncer::ModelTypeSyncBridge>(); 438 return base::WeakPtr<syncer::ModelTypeSyncBridge>();
439 } 439 }
440 } 440 }
441 441
442 scoped_refptr<syncer::ModelSafeWorker> 442 scoped_refptr<syncer::ModelSafeWorker>
443 ChromeSyncClient::CreateModelWorkerForGroup( 443 ChromeSyncClient::CreateModelWorkerForGroup(
444 syncer::ModelSafeGroup group, 444 syncer::ModelSafeGroup group,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 sync_service->RegisterDataTypeController( 627 sync_service->RegisterDataTypeController(
628 base::MakeUnique<SupervisedUserSyncDataTypeController>( 628 base::MakeUnique<SupervisedUserSyncDataTypeController>(
629 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_)); 629 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_));
630 sync_service->RegisterDataTypeController( 630 sync_service->RegisterDataTypeController(
631 base::MakeUnique<SupervisedUserSyncDataTypeController>( 631 base::MakeUnique<SupervisedUserSyncDataTypeController>(
632 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_)); 632 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_));
633 #endif 633 #endif
634 } 634 }
635 635
636 } // namespace browser_sync 636 } // namespace browser_sync
OLDNEW
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698