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

Unified Diff: components/history/core/browser/history_service.cc

Issue 1205603002: Remove dependency of HistoryServiceFactory on ChromeBookmarkClientFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_history_client
Patch Set: Fix unit_tests on android (only register as BookmarkModelObserver if HistoryService is initialized) Created 5 years, 6 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: components/history/core/browser/history_service.cc
diff --git a/components/history/core/browser/history_service.cc b/components/history/core/browser/history_service.cc
index da0ed64137e740b8f4b79894060d797b5ffa0d98..cbac0309a9faea77a9b0b844855950c8f252b643 100644
--- a/components/history/core/browser/history_service.cc
+++ b/components/history/core/browser/history_service.cc
@@ -889,6 +889,9 @@ bool HistoryService::Init(
if (visit_delegate_ && !visit_delegate_->Init(this))
return false;
+ if (history_client_)
+ history_client_->OnHistoryServiceCreated(this);
+
return true;
}
« no previous file with comments | « components/history/core/browser/history_client.h ('k') | components/history/core/test/history_client_fake_bookmarks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698