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

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

Issue 694843002: Remove NOTIFICATION_HISTORY_URLS_MODIFIED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | chrome/browser/history/history_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_service.cc
diff --git a/chrome/browser/history/history_service.cc b/chrome/browser/history/history_service.cc
index f19f267f282f8050262b78107c1d33ea1ab2a0f9..d3c78c672c7fd3f364f44a946bdc4f23deec08ff 100644
--- a/chrome/browser/history/history_service.cc
+++ b/chrome/browser/history/history_service.cc
@@ -181,6 +181,14 @@ class HistoryService::BackendDelegate : public HistoryBackend::Delegate {
visit_time));
}
+ void NotifyURLsModified(const history::URLRows& changed_urls) override {
+ service_task_runner_->PostTask(
+ FROM_HERE,
+ base::Bind(&HistoryService::NotifyURLsModified,
+ history_service_,
+ changed_urls));
+ }
+
void BroadcastNotifications(
int type,
scoped_ptr<history::HistoryDetails> details) override {
@@ -1254,6 +1262,13 @@ void HistoryService::NotifyURLVisited(ui::PageTransition transition,
OnURLVisited(this, transition, row, redirects, visit_time));
}
+void HistoryService::NotifyURLsModified(const history::URLRows& changed_urls) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ FOR_EACH_OBSERVER(history::HistoryServiceObserver,
+ observers_,
+ OnURLsModified(this, changed_urls));
+}
+
scoped_ptr<base::CallbackList<void(const std::set<GURL>&)>::Subscription>
HistoryService::AddFaviconChangedCallback(
const HistoryService::OnFaviconChangedCallback& callback) {
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | chrome/browser/history/history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698