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

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

Issue 541763002: tracing: get rid of files in TracingController interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed android Created 6 years, 3 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: content/public/test/browser_test_base.cc
diff --git a/content/public/test/browser_test_base.cc b/content/public/test/browser_test_base.cc
index c942236b267e7e9bad8abe2a8b5b95cd4b7695f3..d8bfa19d4a3dc6f9e6a6ddebf97757a851434bbd 100644
--- a/content/public/test/browser_test_base.cc
+++ b/content/public/test/browser_test_base.cc
@@ -14,8 +14,8 @@
#include "base/test/test_timeouts.h"
#include "content/public/app/content_main.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
+#include "content/browser/tracing/tracing_controller_impl.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/tracing_controller.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/main_function_params.h"
#include "content/public/test/test_launcher.h"
@@ -301,8 +301,9 @@ void BrowserTestBase::ProxyRunTestOnMainThreadLoop() {
// Wait for tracing to collect results from the renderers.
base::RunLoop run_loop;
TracingController::GetInstance()->DisableRecording(
- trace_file,
- base::Bind(&TraceDisableRecordingComplete, run_loop.QuitClosure()));
+ TracingControllerImpl::CreateFileSink(trace_file,
+ base::Bind(&TraceDisableRecordingComplete,
+ run_loop.QuitClosure(), trace_file)));
run_loop.Run();
}
}

Powered by Google App Engine
This is Rietveld 408576698