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

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

Issue 2723953002: [sync] skeleton implementation of TypedURLSyncBridge (Closed)
Patch Set: rebase and address missing parts for bug 558320 Created 3 years, 10 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
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 6430bae7499269e01c5e26fc87ff9d39fe0f11d2..88908d1fd76a697e329ed140733f5f8377fb724f 100644
--- a/chrome/browser/sync/chrome_sync_client.cc
+++ b/chrome/browser/sync/chrome_sync_client.cc
@@ -496,6 +496,13 @@ ChromeSyncClient::GetSyncBridgeForModelType(syncer::ModelType type) {
->GetSyncBridge()
->AsWeakPtr();
#endif
+ case syncer::TYPED_URLS: {
+ history::HistoryService* history = HistoryServiceFactory::GetForProfile(
skym 2017/03/07 18:08:04 So, every other place we access the HistoryService
Gang Wu 2017/03/31 19:35:58 Done.
+ profile_, ServiceAccessType::IMPLICIT_ACCESS);
+ if (!history)
+ return base::WeakPtr<history::TypedURLSyncBridge>();
+ return history->GetTypedURLSyncBridge()->AsWeakPtr();
+ }
default:
NOTREACHED();
return base::WeakPtr<syncer::ModelTypeSyncBridge>();

Powered by Google App Engine
This is Rietveld 408576698