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

Unified Diff: base/platform_file_win.cc

Issue 3743004: Rename FileUtilProxy::Create to EnsureFileExists (Closed)
Patch Set: fixed comments Created 10 years, 2 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 | « base/platform_file_posix.cc ('k') | webkit/fileapi/file_system_operation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/platform_file_win.cc
diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc
index 63dfef929c1da6b52d15ebc31fc21797f561d4ba..3aa02e89cc27a9975f9371b0bb17f8881050f8a0 100644
--- a/base/platform_file_win.cc
+++ b/base/platform_file_win.cc
@@ -68,9 +68,9 @@ PlatformFile CreatePlatformFile(const FilePath& name,
disposition, create_flags, NULL);
if (created && (INVALID_HANDLE_VALUE != file)) {
- if (flags & PLATFORM_FILE_OPEN_ALWAYS)
+ if (flags & (PLATFORM_FILE_OPEN_ALWAYS))
*created = (ERROR_ALREADY_EXISTS != GetLastError());
- else if (flags & PLATFORM_FILE_CREATE_ALWAYS)
+ else if (flags & (PLATFORM_FILE_CREATE_ALWAYS | PLATFORM_FILE_CREATE))
*created = true;
}
« no previous file with comments | « base/platform_file_posix.cc ('k') | webkit/fileapi/file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698