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

Unified Diff: components/tracing/trace_config_file.cc

Issue 1719983005: base: Stop overloading ReadFileToString() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix errors Created 4 years, 10 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: components/tracing/trace_config_file.cc
diff --git a/components/tracing/trace_config_file.cc b/components/tracing/trace_config_file.cc
index 3e64724b4fa6c274351c3944491be472c9e2e70d..670bcc9c2064d52257d973c4d7a1a9878812d85b 100644
--- a/components/tracing/trace_config_file.cc
+++ b/components/tracing/trace_config_file.cc
@@ -82,9 +82,9 @@ TraceConfigFile::TraceConfigFile()
}
std::string trace_config_file_content;
- if (!base::ReadFileToString(trace_config_file,
- &trace_config_file_content,
- kTraceConfigFileSizeLimit)) {
+ if (!base::ReadFileToStringWithMaxSize(trace_config_file,
+ &trace_config_file_content,
+ kTraceConfigFileSizeLimit)) {
DLOG(WARNING) << "Cannot read the trace config file correctly.";
return;
}
« no previous file with comments | « components/policy/core/common/cloud/user_cloud_policy_store.cc ('k') | content/browser/webui/web_ui_mojo_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698