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

Unified Diff: chrome/browser/spellchecker.cc

Issue 6005: Cross-platform equivalent of fopen, _wfopen_s etc.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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/spellchecker.cc
===================================================================
--- chrome/browser/spellchecker.cc (revision 2711)
+++ chrome/browser/spellchecker.cc (working copy)
@@ -471,10 +471,9 @@
// faster, compared to verifying everytime whether to append a new line
// or not.
word_ += "\n";
- const char* file_name_char = file_name_.c_str();
- FILE* f = fopen(file_name_char, "a+");
+ FILE* f = file_util::OpenFile(file_name_, "a+");
fputs(word_.c_str(), f);
- fclose(f);
+ file_util::CloseFile(f);
}
std::string file_name_;

Powered by Google App Engine
This is Rietveld 408576698