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

Side by Side Diff: chrome/browser/extensions/api/file_system/file_system_api.cc

Issue 13937002: Really fix build after r193020. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/file_system/file_system_api.h" 5 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 base::Unretained(this), static_cast<void*>(NULL))); 430 base::Unretained(this), static_cast<void*>(NULL)));
431 } 431 }
432 return; 432 return;
433 } 433 }
434 434
435 select_file_dialog_->SelectFile(picker_type, 435 select_file_dialog_->SelectFile(picker_type,
436 string16(), 436 string16(),
437 suggested_name, 437 suggested_name,
438 &file_type_info, 438 &file_type_info,
439 0, 439 0,
440 FILE_PATH_LITERAL(std::string()), 440 base::FilePath::StringType(),
441 owning_window, 441 owning_window,
442 NULL); 442 NULL);
443 } 443 }
444 444
445 virtual ~FilePicker() {} 445 virtual ~FilePicker() {}
446 446
447 private: 447 private:
448 // ui::SelectFileDialog::Listener implementation. 448 // ui::SelectFileDialog::Listener implementation.
449 virtual void FileSelected(const base::FilePath& path, 449 virtual void FileSelected(const base::FilePath& path,
450 int index, 450 int index,
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 if (entry_type == WRITABLE && !HasFileSystemWritePermission()) { 655 if (entry_type == WRITABLE && !HasFileSystemWritePermission()) {
656 error_ = kRequiresFileSystemWriteError; 656 error_ = kRequiresFileSystemWriteError;
657 return false; 657 return false;
658 } 658 }
659 659
660 file_type_info.support_drive = true; 660 file_type_info.support_drive = true;
661 return ShowPicker(suggested_name, file_type_info, picker_type, entry_type); 661 return ShowPicker(suggested_name, file_type_info, picker_type, entry_type);
662 } 662 }
663 663
664 } // namespace extensions 664 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/developer_private/entry_picker.cc ('k') | chrome/browser/extensions/webstore_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698