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

Unified Diff: chrome/browser/history/chrome_history_client.cc

Issue 642623004: Rename VisitDatabaseObserver to HistoryServiceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@373326
Patch Set: Created 6 years, 2 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/history/chrome_history_client.cc
diff --git a/chrome/browser/history/chrome_history_client.cc b/chrome/browser/history/chrome_history_client.cc
index d9f50f3003c004e02573674678d7dac05a51628b..84fbe551bcb3a850e35fa4bdb0a4dbb6b1ad4d00 100644
--- a/chrome/browser/history/chrome_history_client.cc
+++ b/chrome/browser/history/chrome_history_client.cc
@@ -36,7 +36,7 @@ ChromeHistoryClient::~ChromeHistoryClient() {
void ChromeHistoryClient::SetHistoryService(HistoryService* history_service) {
DCHECK(history_service);
history_service_ = history_service;
- history_service_->AddHistoryServiceObserver(this);
+ history_service_->AddObserver(this);
}
void ChromeHistoryClient::BlockUntilBookmarksLoaded() {
@@ -88,7 +88,7 @@ void ChromeHistoryClient::Shutdown() {
// sees an incorrect view of bookmarks, but it's better than a deadlock.
bookmark_model_->Shutdown();
if (history_service_)
- history_service_->RemoveHistoryServiceObserver(this);
+ history_service_->RemoveObserver(this);
}
// TODO(sdefresne): port client listening for NOTIFICATION_HISTORY_URL_VISITED

Powered by Google App Engine
This is Rietveld 408576698