Chromium Code Reviews| 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 bafb68557ca9c959d35bf6f3a2cadff22da1df9d..244226bc9044549553f1252866984a6cc7e542a2 100644 |
| --- a/chrome/browser/chromeos/extensions/file_browser_handler_api.cc |
| +++ b/chrome/browser/chromeos/extensions/file_browser_handler_api.cc |
| @@ -233,29 +233,11 @@ void FileHandlerSelectFileFunction::CreateFileOnFileThread( |
| const GURL& file_system_root) { |
| DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
| - if (success) |
| - success = DoCreateFile(); |
|
kinaba
2012/06/28 05:52:34
(Not sure if this part is intended to be a part of
zel
2012/06/28 17:50:46
Yes, we have to remove this since file picker API
kinaba
2012/06/29 01:48:08
I see, but it changes the behavior of existing cod
|
| 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, |