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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover_unittest.cc

Issue 330703005: Revert of Change HistoryService::QueryURL to use CancelableTaskTracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | chrome/browser/custom_home_pages_table_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
index 29c3595f51a593a617ea1b6e87af0a29809eed9c..349ae04b1bda62422d0a3c60c66d8ee5394520a7 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
@@ -15,7 +15,6 @@
#include "base/message_loop/message_loop.h"
#include "base/prefs/testing_pref_service.h"
#include "base/strings/utf_string_conversions.h"
-#include "base/task/cancelable_task_tracker.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/browsing_data/browsing_data_helper.h"
#include "chrome/browser/browsing_data/browsing_data_remover_test_util.h"
@@ -385,9 +384,9 @@
history_service_->QueryURL(
url,
true,
+ &consumer_,
base::Bind(&RemoveHistoryTester::SaveResultAndQuit,
- base::Unretained(this)),
- &tracker_);
+ base::Unretained(this)));
message_loop_runner->Run();
return query_url_success_;
}
@@ -400,15 +399,16 @@
private:
// Callback for HistoryService::QueryURL.
- void SaveResultAndQuit(bool success,
- const history::URLRow&,
- const history::VisitVector&) {
+ void SaveResultAndQuit(HistoryService::Handle,
+ bool success,
+ const history::URLRow*,
+ history::VisitVector*) {
query_url_success_ = success;
quit_closure_.Run();
}
// For History requests.
- base::CancelableTaskTracker tracker_;
+ CancelableRequestConsumer consumer_;
bool query_url_success_;
base::Closure quit_closure_;
« no previous file with comments | « no previous file | chrome/browser/custom_home_pages_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698