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

Unified Diff: chrome/browser/history/android/android_provider_backend_unittest.cc

Issue 773103004: Remove NOTIFICATION_HISTORY_URLS_DELETED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to tip 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
Index: chrome/browser/history/android/android_provider_backend_unittest.cc
diff --git a/chrome/browser/history/android/android_provider_backend_unittest.cc b/chrome/browser/history/android/android_provider_backend_unittest.cc
index 59e189e1b0dd4b4bfcf6f6fce2ae325f81c7693d..122766b95abbec44462bc1eb8bb80aae420ecef0 100644
--- a/chrome/browser/history/android/android_provider_backend_unittest.cc
+++ b/chrome/browser/history/android/android_provider_backend_unittest.cc
@@ -13,7 +13,6 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
-#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/history/chrome_history_client.h"
#include "chrome/browser/history/chrome_history_client_factory.h"
#include "chrome/browser/history/history_backend.h"
@@ -87,18 +86,16 @@ class AndroidProviderBackendDelegate : public HistoryBackend::Delegate {
void NotifyURLsModified(const history::URLRows& rows) override {
modified_details_.reset(new history::URLRows(rows));
}
+ void NotifyURLsDeleted(bool all_history,
+ bool expired,
+ const URLRows& deleted_rows,
+ const std::set<GURL>& favicon_urls) override {
+ deleted_details_.reset(new history::URLRows(deleted_rows));
+ }
void NotifyKeywordSearchTermUpdated(const URLRow& row,
KeywordID keyword_id,
const base::string16& term) override {}
void NotifyKeywordSearchTermDeleted(URLID url_id) override {}
- void BroadcastNotifications(
- int type,
- scoped_ptr<HistoryDetails> details) override {
- DCHECK_EQ(type, chrome::NOTIFICATION_HISTORY_URLS_DELETED);
- scoped_ptr<URLsDeletedDetails> urls_deleted_details(
- static_cast<URLsDeletedDetails*>(details.release()));
- deleted_details_.reset(new history::URLRows(urls_deleted_details->rows));
- }
void DBLoaded() override {}
history::URLRows* deleted_details() const { return deleted_details_.get(); }
« no previous file with comments | « chrome/browser/history/android/android_provider_backend.h ('k') | chrome/browser/history/expire_history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698