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

Unified Diff: base/files/file_util.cc

Issue 2678813003: Disable fd/handle sharing in base::ReadFileToString. (Closed)
Patch Set: comment tweaks Created 3 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
« no previous file with comments | « base/files/file_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_util.cc
diff --git a/base/files/file_util.cc b/base/files/file_util.cc
index 80fa44f9ea22648fb7b9e9a55e67a049abcb66c0..70ff83a6e1cfe52efb4733f8f9703d2ad3b767d6 100644
--- a/base/files/file_util.cc
+++ b/base/files/file_util.cc
@@ -131,7 +131,7 @@ bool ReadFileToStringWithMaxSize(const FilePath& path,
contents->clear();
if (path.ReferencesParent())
return false;
- FILE* file = OpenFile(path, "rb");
+ FILE* file = OpenFile(path, "rb" FONE);
if (!file) {
return false;
}
« no previous file with comments | « base/files/file_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698