| Index: chrome/browser/extensions/api/file_system/file_system_api.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/api/file_system/file_system_api.cc (revision 144942)
|
| +++ chrome/browser/extensions/api/file_system/file_system_api.cc (working copy)
|
| @@ -9,7 +9,6 @@
|
| #include "base/file_util.h"
|
| #include "chrome/browser/extensions/shell_window_registry.h"
|
| #include "chrome/browser/platform_util.h"
|
| -#include "chrome/browser/ui/chrome_select_file_policy.h"
|
| #include "chrome/browser/ui/extensions/shell_window.h"
|
| #include "chrome/common/extensions/api/file_system.h"
|
| #include "chrome/common/extensions/permissions/api_permission.h"
|
| @@ -206,8 +205,7 @@
|
| : suggested_path_(suggested_path),
|
| entry_type_(entry_type),
|
| function_(function) {
|
| - select_file_dialog_ = SelectFileDialog::Create(
|
| - this, new ChromeSelectFilePolicy(web_contents));
|
| + select_file_dialog_ = SelectFileDialog::Create(this);
|
| SelectFileDialog::FileTypeInfo file_type_info;
|
| FilePath::StringType extension = suggested_path.Extension();
|
| if (!extension.empty()) {
|
| @@ -240,7 +238,7 @@
|
| string16(),
|
| suggested_path,
|
| &file_type_info, 0, FILE_PATH_LITERAL(""),
|
| - owning_window, NULL);
|
| + web_contents, owning_window, NULL);
|
| }
|
|
|
| virtual ~FilePicker() {}
|
|
|