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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.cc

Issue 379743003: [fsp] Remove the create flag from the file opening operation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/chromeos/file_system_provider/provided_file_system.cc
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system.cc b/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
index e88ed8611cb888bc8989844a42c0b3a1b963aee8..39119fd320eb21abc0e27ce16e15342b4d8fed51 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
@@ -99,11 +99,9 @@ void ProvidedFileSystem::ReadFile(int file_handle,
void ProvidedFileSystem::OpenFile(const base::FilePath& file_path,
OpenFileMode mode,
- bool create,
const OpenFileCallback& callback) {
- // Writing is not supported. Note, that this includes a situation, when a file
- // exists, but |create| is set to true.
- if (mode == OPEN_FILE_MODE_WRITE || create) {
+ // Writing is not supported.
+ if (mode == OPEN_FILE_MODE_WRITE) {
callback.Run(0 /* file_handle */, base::File::FILE_ERROR_SECURITY);
return;
}
@@ -115,7 +113,6 @@ void ProvidedFileSystem::OpenFile(const base::FilePath& file_path,
file_system_info_,
file_path,
mode,
- create,
callback)))) {
callback.Run(0 /* file_handle */, base::File::FILE_ERROR_SECURITY);
}

Powered by Google App Engine
This is Rietveld 408576698