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

Unified Diff: content/public/test/browsing_data_remover_test_util.cc

Issue 2827523003: Move BrowsingDataRemover to content/ (Closed)
Patch Set: Rebase over codereview.chromium.org/2815913005 Created 3 years, 8 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 | « content/public/test/browsing_data_remover_test_util.h ('k') | content/public/test/cache_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browsing_data_remover_test_util.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_test_util.cc b/content/public/test/browsing_data_remover_test_util.cc
similarity index 89%
rename from chrome/browser/browsing_data/browsing_data_remover_test_util.cc
rename to content/public/test/browsing_data_remover_test_util.cc
index 6677ff7da225991bb6c737e6561cd60f019580cd..453fc9fcc531c10acafcc762407fd35dbba7424b 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_test_util.cc
+++ b/content/public/test/browsing_data_remover_test_util.cc
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/browsing_data/browsing_data_remover_test_util.h"
+#include "content/public/test/browsing_data_remover_test_util.h"
+
+namespace content {
BrowsingDataRemoverCompletionObserver::BrowsingDataRemoverCompletionObserver(
BrowsingDataRemover* remover)
- : message_loop_runner_(new content::MessageLoopRunner), observer_(this) {
+ : message_loop_runner_(new MessageLoopRunner()), observer_(this) {
observer_.Add(remover);
}
@@ -47,7 +49,7 @@ void BrowsingDataRemoverCompletionInhibitor::Reset() {
void BrowsingDataRemoverCompletionInhibitor::BlockUntilNearCompletion() {
message_loop_runner_->Run();
- message_loop_runner_ = new content::MessageLoopRunner;
+ message_loop_runner_ = new MessageLoopRunner();
}
void BrowsingDataRemoverCompletionInhibitor::ContinueToCompletion() {
@@ -62,3 +64,5 @@ void BrowsingDataRemoverCompletionInhibitor::OnBrowsingDataRemoverWouldComplete(
continue_to_completion_callback_ = continue_to_completion;
message_loop_runner_->Quit();
}
+
+} // namespace content
« no previous file with comments | « content/public/test/browsing_data_remover_test_util.h ('k') | content/public/test/cache_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698