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

Unified Diff: chrome/browser/tracing/crash_service_uploader.h

Issue 2085623005: Limit the background trials upload size to 100Kib when using mobile data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Configure size limit. Created 4 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
Index: chrome/browser/tracing/crash_service_uploader.h
diff --git a/chrome/browser/tracing/crash_service_uploader.h b/chrome/browser/tracing/crash_service_uploader.h
index cfff0933d116c8f33c249d6015c80739eb9f4bc1..eb555f195aa471cd36cd429d0b23ad8777db7d86 100644
--- a/chrome/browser/tracing/crash_service_uploader.h
+++ b/chrome/browser/tracing/crash_service_uploader.h
@@ -33,6 +33,8 @@ class TraceCrashServiceUploader : public content::TraceUploader,
void SetUploadURL(const std::string& url);
+ void SetMaxUploadBytes(size_t max_upload_bytes);
+
// net::URLFetcherDelegate implementation.
void OnURLFetchComplete(const net::URLFetcher* source) override;
void OnURLFetchUploadProgress(const net::URLFetcher* source,
@@ -82,6 +84,8 @@ class TraceCrashServiceUploader : public content::TraceUploader,
std::string upload_url_;
+ size_t max_upload_bytes_;
+
DISALLOW_COPY_AND_ASSIGN(TraceCrashServiceUploader);
};
« no previous file with comments | « chrome/browser/tracing/background_tracing_field_trial.cc ('k') | chrome/browser/tracing/crash_service_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698