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

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

Issue 872313005: Remove dependency on visitedlink from history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@init-prefs
Patch Set: Rebase Created 5 years, 10 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 26c71336458d2fd08db39837d58f82bc66f56be4..0bbbf4006675780288599bef6ba9c8b2335d7ba7 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -172,8 +172,7 @@ bool QueuedHistoryDBTask::is_canceled() {
return is_canceled_.Run();
}
-bool QueuedHistoryDBTask::Run(HistoryBackend* backend,
- HistoryDatabase* db) {
+bool QueuedHistoryDBTask::Run(HistoryBackend* backend, HistoryDatabase* db) {
return task_->RunOnDBThread(backend, db);
}
@@ -924,23 +923,6 @@ void HistoryBackend::AddPageNoVisitForBookmark(const GURL& url,
db_->AddURL(url_info);
}
-void HistoryBackend::IterateURLs(
- const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>&
- iterator) {
- if (db_) {
- HistoryDatabase::URLEnumerator e;
- if (db_->InitURLEnumeratorForEverything(&e)) {
- URLRow info;
- while (e.GetNextURL(&info)) {
- iterator->OnURL(info.url());
- }
- iterator->OnComplete(true); // Success.
- return;
- }
- }
- iterator->OnComplete(false); // Failure.
-}
-
bool HistoryBackend::GetAllTypedURLs(URLRows* urls) {
if (db_)
return db_->GetAllTypedUrls(urls);
« 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