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

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

Issue 808123003: Eliminate sending NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update unittest 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 53d16737d4d1a6baf4dc48ba3527b6b8788af1bc..2054fbad2f0c306ef9d962220464cd71cd52a14b 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -1051,10 +1051,9 @@ void HistoryBackend::SetKeywordSearchTermsForURL(const GURL& url,
db_->SetKeywordSearchTermsForURL(row.id(), keyword_id, term);
- BroadcastNotifications(
- chrome::NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED,
- scoped_ptr<HistoryDetails>(
- new KeywordSearchUpdatedDetails(row, keyword_id, term)));
+ if (delegate_)
+ delegate_->NotifyKeywordSearchTermUpdated(row, keyword_id, term);
+
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