Index: ios/chrome/browser/sync/ios_chrome_sync_client.mm |
diff --git a/ios/chrome/browser/sync/ios_chrome_sync_client.mm b/ios/chrome/browser/sync/ios_chrome_sync_client.mm |
index ed427b610645eab597492205a563069490c2844e..74ce61a81bae8d99b8b4868afefc9e134626496e 100644 |
--- a/ios/chrome/browser/sync/ios_chrome_sync_client.mm |
+++ b/ios/chrome/browser/sync/ios_chrome_sync_client.mm |
@@ -338,10 +338,12 @@ IOSChromeSyncClient::GetSyncBridgeForModelType(syncer::ModelType type) { |
->GetDeviceInfoSyncBridge() |
->AsWeakPtr(); |
case syncer::READING_LIST: { |
- ReadingListModel* reading_list_model = |
- ReadingListModelFactory::GetForBrowserState(browser_state_); |
- if (reading_list_model) |
- return reading_list_model->GetModelTypeSyncBridge()->AsWeakPtr(); |
+ if (ReadingListModelFactory::IsReadingListEnabled()) { |
pavely
2016/11/20 02:31:58
It is an issue when GetSyncBridgeForModelType retu
Olivier
2016/11/20 10:32:33
Problem is that ReadingListService is in ios/chrom
|
+ ReadingListModel* reading_list_model = |
+ ReadingListModelFactory::GetForBrowserState(browser_state_); |
+ if (reading_list_model) |
+ return reading_list_model->GetModelTypeSyncBridge()->AsWeakPtr(); |
+ } |
return base::WeakPtr<syncer::ModelTypeSyncBridge>(); |
} |
default: |