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

Unified Diff: tools/gn/function_read_file.cc

Issue 19579005: Move ReadFileToString to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « tools/gn/command_gyp.cc ('k') | tools/gn/input_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_read_file.cc
diff --git a/tools/gn/function_read_file.cc b/tools/gn/function_read_file.cc
index af8bdb10709e2f6b7d0deb7b6d5a423dc3f90d6a..1067d9bba75d5301ea6f8cb5acdd4cc8719b1a63 100644
--- a/tools/gn/function_read_file.cc
+++ b/tools/gn/function_read_file.cc
@@ -60,7 +60,7 @@ Value RunReadFile(Scope* scope,
// Read contents.
std::string file_contents;
- if (!file_util::ReadFileToString(file_path, &file_contents)) {
+ if (!base::ReadFileToString(file_path, &file_contents)) {
*err = Err(args[0], "Could not read file.",
"I resolved this to \"" + FilePathToUTF8(file_path) + "\".");
return Value();
« no previous file with comments | « tools/gn/command_gyp.cc ('k') | tools/gn/input_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698