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

Unified Diff: chrome/browser/tracing/background_tracing_field_trial.cc

Issue 1148633007: Hooked the trace event argument whitelist up to the background_trace_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Buildfix Created 5 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 | « base/trace_event/trace_config.h ('k') | content/browser/tracing/background_tracing_manager_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tracing/background_tracing_field_trial.cc
diff --git a/chrome/browser/tracing/background_tracing_field_trial.cc b/chrome/browser/tracing/background_tracing_field_trial.cc
index c509d686c48c0253c618f338ef9a4c6ec7465534..8d459ba0a9a9344ea89bdd87545ad4f9a5ce1344 100644
--- a/chrome/browser/tracing/background_tracing_field_trial.cc
+++ b/chrome/browser/tracing/background_tracing_field_trial.cc
@@ -34,7 +34,7 @@ void OnUploadComplete(TraceCrashServiceUploader* uploader,
done_callback.Run();
}
-void UploadCallback(const base::RefCountedString* file_contents,
+void UploadCallback(const scoped_refptr<base::RefCountedString>& file_contents,
base::Closure callback) {
TraceCrashServiceUploader* uploader = new TraceCrashServiceUploader(
g_browser_process->system_request_context());
@@ -66,7 +66,8 @@ void SetupBackgroundTracingFieldTrial() {
return;
content::BackgroundTracingManager::GetInstance()->SetActiveScenario(
- config.Pass(), base::Bind(&UploadCallback), true);
+ config.Pass(), base::Bind(&UploadCallback),
+ content::BackgroundTracingManager::ANONYMIZE_DATA);
}
} // namespace tracing
« no previous file with comments | « base/trace_event/trace_config.h ('k') | content/browser/tracing/background_tracing_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698