| Index: chrome/browser/chromeos/extensions/file_browser_handler_api.cc
|
| diff --git a/chrome/browser/chromeos/extensions/file_browser_handler_api.cc b/chrome/browser/chromeos/extensions/file_browser_handler_api.cc
|
| index 3052980b0f00422b0156de5211cf0ac6d00424f2..99a73d91a0ae1ee8bee502b5304a93d7000eaf99 100644
|
| --- a/chrome/browser/chromeos/extensions/file_browser_handler_api.cc
|
| +++ b/chrome/browser/chromeos/extensions/file_browser_handler_api.cc
|
| @@ -237,29 +237,11 @@ void FileHandlerSelectFileFunction::CreateFileOnFileThread(
|
| const GURL& file_system_root) {
|
| DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
|
|
|
| - if (success)
|
| - success = DoCreateFile();
|
| content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
|
| base::Bind(&FileHandlerSelectFileFunction::OnFileCreated, this,
|
| success, file_system_name, file_system_root));
|
| }
|
|
|
| -bool FileHandlerSelectFileFunction::DoCreateFile() {
|
| - DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
|
| -
|
| - // Don't allow links.
|
| - if (file_util::PathExists(full_path_) && file_util::IsLink(full_path_))
|
| - return false;
|
| -
|
| - bool created = false;
|
| - base::PlatformFileError error = base::PLATFORM_FILE_OK;
|
| - int creation_flags = base::PLATFORM_FILE_CREATE_ALWAYS |
|
| - base::PLATFORM_FILE_READ |
|
| - base::PLATFORM_FILE_WRITE;
|
| - base::CreatePlatformFile(full_path_, creation_flags, &created, &error);
|
| - return error == base::PLATFORM_FILE_OK;
|
| -}
|
| -
|
| void FileHandlerSelectFileFunction::OnFileCreated(
|
| bool success,
|
| const std::string& file_system_name,
|
|
|