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

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

Issue 830483005: Eliminate sending NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_DELETED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 5 years, 11 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
« no previous file with comments | « chrome/browser/history/history_backend.h ('k') | chrome/browser/history/history_backend_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_backend.cc
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index 2054fbad2f0c306ef9d962220464cd71cd52a14b..948792fc61e6a2b5cb45ae4d784c120bdd448b06 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -1074,9 +1074,9 @@ void HistoryBackend::DeleteKeywordSearchTermForURL(const GURL& url) {
return;
db_->DeleteKeywordSearchTermForURL(url_id);
- BroadcastNotifications(
- chrome::NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_DELETED,
- scoped_ptr<HistoryDetails>(new KeywordSearchDeletedDetails(url_id)));
+ if (delegate_)
+ delegate_->NotifyKeywordSearchTermDeleted(url_id);
+
ScheduleCommit();
}
« no previous file with comments | « chrome/browser/history/history_backend.h ('k') | chrome/browser/history/history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698