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

Unified Diff: chrome/browser/history/in_memory_url_index.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/in_memory_url_index.cc
diff --git a/chrome/browser/history/in_memory_url_index.cc b/chrome/browser/history/in_memory_url_index.cc
index 55537eb1e00806fe1f97c0e4f472db1ee2d58b50..33f67f65554777881333f544dd7f386ad4cc23d1 100644
--- a/chrome/browser/history/in_memory_url_index.cc
+++ b/chrome/browser/history/in_memory_url_index.cc
@@ -113,7 +113,7 @@ InMemoryURLIndex::InMemoryURLIndex(Profile* profile,
registrar_.Add(this, chrome::NOTIFICATION_HISTORY_URLS_DELETED, source);
}
if (history_service_)
- history_service_->AddHistoryServiceObserver(this);
+ history_service_->AddObserver(this);
}
// Called only by unit tests.
@@ -142,7 +142,7 @@ void InMemoryURLIndex::Init() {
void InMemoryURLIndex::ShutDown() {
if (history_service_)
- history_service_->RemoveHistoryServiceObserver(this);
+ history_service_->RemoveObserver(this);
registrar_.RemoveAll();
cache_reader_tracker_.TryCancelAll();
shutdown_ = true;

Powered by Google App Engine
This is Rietveld 408576698