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

Unified Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
index 6cc0fa2be5602545a7d3dbdc7bd3d44edd4c964f..003477dd5b83036561808980b803e0ac8fd3fadd 100644
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -133,7 +133,7 @@ bool SaveDictionaryData(scoped_ptr<std::string> data,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
size_t bytes_written =
- file_util::WriteFile(path, data->data(), data->length());
+ base::WriteFile(path, data->data(), data->length());
if (bytes_written != data->length()) {
bool success = false;
#if defined(OS_WIN)
@@ -142,7 +142,7 @@ bool SaveDictionaryData(scoped_ptr<std::string> data,
base::FilePath fallback_file_path =
dict_dir.Append(path.BaseName());
bytes_written =
- file_util::WriteFile(fallback_file_path, data->data(), data->length());
+ base::WriteFile(fallback_file_path, data->data(), data->length());
if (bytes_written == data->length())
success = true;
#endif

Powered by Google App Engine
This is Rietveld 408576698