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

Unified Diff: base/file_util_linux.cc

Issue 10905: Unfork test_shell_main_gtk back into test_shell_main. (Closed)
Patch Set: Created 12 years, 1 month 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 | base/process_util_linux.cc » ('j') | webkit/tools/test_shell/SConscript » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_linux.cc
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc
index f776c917b74a51f0da876eb808e0ab8b2dd0e284..945200a81279b4616843b92b9590f41a49c2f2e0 100644
--- a/base/file_util_linux.cc
+++ b/base/file_util_linux.cc
@@ -26,6 +26,10 @@ bool GetTempDir(FilePath* path) {
return true;
}
+FILE* OpenFile(const FilePath& filename, const char* mode) {
+ return fopen(filename.value().c_str(), mode);
+}
+
bool CopyFile(const FilePath& from_path, const FilePath& to_path) {
int infile = open(from_path.value().c_str(), O_RDONLY);
if (infile < 0)
« no previous file with comments | « no previous file | base/process_util_linux.cc » ('j') | webkit/tools/test_shell/SConscript » ('J')

Powered by Google App Engine
This is Rietveld 408576698