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

Unified Diff: base/json/json_file_value_serializer.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 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 | « base/i18n/rtl.cc ('k') | base/json/json_value_serializer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_file_value_serializer.cc
diff --git a/base/json/json_file_value_serializer.cc b/base/json/json_file_value_serializer.cc
index 72a09700161776760a00c73e99f57b613f26df11..d364c80be9b2739012324fc4327888dd2abb813d 100644
--- a/base/json/json_file_value_serializer.cc
+++ b/base/json/json_file_value_serializer.cc
@@ -64,14 +64,6 @@ JSONFileValueDeserializer::~JSONFileValueDeserializer() {
int JSONFileValueDeserializer::ReadFileToString(std::string* json_string) {
DCHECK(json_string);
if (!base::ReadFileToString(json_file_path_, json_string)) {
-#if defined(OS_WIN)
- int error = ::GetLastError();
- if (error == ERROR_SHARING_VIOLATION || error == ERROR_LOCK_VIOLATION) {
- return JSON_FILE_LOCKED;
- } else if (error == ERROR_ACCESS_DENIED) {
- return JSON_ACCESS_DENIED;
- }
-#endif
if (!base::PathExists(json_file_path_))
return JSON_NO_SUCH_FILE;
else
« no previous file with comments | « base/i18n/rtl.cc ('k') | base/json/json_value_serializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698