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

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

Issue 15275004: bookmarks: Get rid of the dependency on history_notifications.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more android fixes Created 7 years, 7 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/history_unittest.cc
diff --git a/chrome/browser/history/history_unittest.cc b/chrome/browser/history/history_unittest.cc
index 083905a5a9f233b62f8d46c1a2e47c4e2183f762..8d04905a7479ee40a2483f0f124494d5c106240d 100644
--- a/chrome/browser/history/history_unittest.cc
+++ b/chrome/browser/history/history_unittest.cc
@@ -41,6 +41,7 @@
#include "base/threading/platform_thread.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/favicon/favicon_changed_details.h"
#include "chrome/browser/history/download_row.h"
#include "chrome/browser/history/history_backend.h"
#include "chrome/browser/history/history_database.h"
@@ -92,6 +93,8 @@ class BackendDelegate : public HistoryBackend::Delegate {
sql::InitStatus init_status) OVERRIDE {}
virtual void SetInMemoryBackend(int backend_id,
InMemoryHistoryBackend* backend) OVERRIDE;
+ virtual void SendFaviconChangedNotification(
+ chrome::FaviconChangedDetails* details) OVERRIDE;
virtual void BroadcastNotifications(int type,
HistoryDetails* details) OVERRIDE;
virtual void DBLoaded(int backend_id) OVERRIDE {}
@@ -200,6 +203,12 @@ void BackendDelegate::SetInMemoryBackend(int backend_id,
history_test_->in_mem_backend_.reset(backend);
}
+void BackendDelegate::SendFaviconChangedNotification(
+ chrome::FaviconChangedDetails* details) {
+ // The backend passes ownership of the details pointer to us.
+ delete details;
+}
+
void BackendDelegate::BroadcastNotifications(int type,
HistoryDetails* details) {
// Currently, just send the notifications directly to the in-memory database.

Powered by Google App Engine
This is Rietveld 408576698