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

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

Issue 376703007: Change HistoryService::ScheduleAutocomplete interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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_backend.cc
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index c30c6aa80b20e5a17b8b6b31510a802321a17022..fdcf3e425cee9d63e574d4bfa6e09e3a58ed7263 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -23,7 +23,6 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
-#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/favicon/favicon_changed_details.h"
#include "chrome/browser/history/download_row.h"
@@ -1540,10 +1539,10 @@ bool HistoryBackend::GetMostRecentRedirectsTo(
return true;
}
-void HistoryBackend::ScheduleAutocomplete(HistoryURLProvider* provider,
- HistoryURLProviderParams* params) {
+void HistoryBackend::ScheduleAutocomplete(const base::Callback<
+ void(history::HistoryBackend*, history::URLDatabase*)>& callback) {
// ExecuteWithDB should handle the NULL database case.
blundell 2014/07/08 09:10:05 This comment is out of date now; instead, the comm
nshaik 2014/07/08 18:53:49 Done.
- provider->ExecuteWithDB(this, db_.get(), params);
+ callback.Run(this, db_.get());
}
void HistoryBackend::DeleteFTSIndexDatabases() {

Powered by Google App Engine
This is Rietveld 408576698