| Index: chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc
|
| diff --git a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc
|
| index f9e043d472f807d663e05ca23a8c32fbd17f5ff4..e3fe6ef346ff94c2ea300581d787412a41e419f8 100644
|
| --- a/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc
|
| +++ b/chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| +#include "chrome/browser/ui/chrome_select_file_policy.h"
|
| #include "chrome/browser/ui/webui/web_ui_util.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_paths.h"
|
| @@ -139,8 +140,8 @@ void ChangePictureOptionsHandler::SendDefaultImages() {
|
|
|
| void ChangePictureOptionsHandler::HandleChooseFile(const ListValue* args) {
|
| DCHECK(args && args->empty());
|
| - if (!select_file_dialog_.get())
|
| - select_file_dialog_ = SelectFileDialog::Create(this);
|
| + select_file_dialog_ = SelectFileDialog::Create(
|
| + this, new ChromeSelectFilePolicy(web_ui()->GetWebContents()));
|
|
|
| FilePath downloads_path;
|
| if (!PathService::Get(chrome::DIR_DEFAULT_DOWNLOADS, &downloads_path)) {
|
| @@ -159,7 +160,6 @@ void ChangePictureOptionsHandler::HandleChooseFile(const ListValue* args) {
|
| &file_type_info,
|
| 0,
|
| FILE_PATH_LITERAL(""),
|
| - web_ui()->GetWebContents(),
|
| GetBrowserWindow(),
|
| NULL);
|
| }
|
|
|