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

Unified Diff: chrome/browser/sync/chrome_sync_client.cc

Issue 2254083002: [Sync] Convert NonBlockingDataTypeController to be single-thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dt
Patch Set: Update DeviceInfoService. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.h ('k') | components/sync/api/model_type_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/chrome_sync_client.cc
diff --git a/chrome/browser/sync/chrome_sync_client.cc b/chrome/browser/sync/chrome_sync_client.cc
index a4dabfeb395052c99aadb321902b05ecf2c2184d..56882d9d80f0b8ec6631e8bcf777eaa75736fe59 100644
--- a/chrome/browser/sync/chrome_sync_client.cc
+++ b/chrome/browser/sync/chrome_sync_client.cc
@@ -425,15 +425,16 @@ ChromeSyncClient::GetSyncableServiceForType(syncer::ModelType type) {
}
}
-syncer_v2::ModelTypeService* ChromeSyncClient::GetModelTypeServiceForType(
- syncer::ModelType type) {
+base::WeakPtr<syncer_v2::ModelTypeService>
+ChromeSyncClient::GetModelTypeServiceForType(syncer::ModelType type) {
switch (type) {
case syncer::DEVICE_INFO:
return ProfileSyncServiceFactory::GetForProfile(profile_)
- ->GetDeviceInfoService();
+ ->GetDeviceInfoService()
+ ->AsWeakPtr();
default:
NOTREACHED();
- return nullptr;
+ return base::WeakPtr<syncer_v2::ModelTypeService>();
}
}
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.h ('k') | components/sync/api/model_type_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698