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

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

Issue 1181213002: Slow Reports - Embed Metadata in Traces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed. 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 | « no previous file | chrome/browser/tracing/chrome_tracing_delegate_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 4e827a94fdfa11acce574ffef614faddd482f1d5..3ea292e3a86d1dc6474f7d5710f9a6231134ed75 100644
--- a/chrome/browser/tracing/background_tracing_field_trial.cc
+++ b/chrome/browser/tracing/background_tracing_field_trial.cc
@@ -38,13 +38,14 @@ void OnUploadComplete(TraceCrashServiceUploader* uploader,
void UploadCallback(const std::string& upload_url,
const scoped_refptr<base::RefCountedString>& file_contents,
+ scoped_ptr<base::DictionaryValue> metadata,
base::Closure callback) {
TraceCrashServiceUploader* uploader = new TraceCrashServiceUploader(
g_browser_process->system_request_context());
uploader->SetUploadURL(upload_url);
uploader->DoUpload(
- file_contents->data(), base::Bind(&OnUploadProgress),
+ file_contents->data(), metadata.Pass(), base::Bind(&OnUploadProgress),
base::Bind(&OnUploadComplete, base::Owned(uploader), callback));
}
« no previous file with comments | « no previous file | chrome/browser/tracing/chrome_tracing_delegate_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698