Index: chrome/browser/ui/webui/options2/browser_options_handler2.cc |
diff --git a/chrome/browser/ui/webui/options2/browser_options_handler2.cc b/chrome/browser/ui/webui/options2/browser_options_handler2.cc |
index b5c54dfe5077742072d5e16523c4597d18c8cdbe..024b9e1056ef0d1f70ab45782251a8300483cf27 100644 |
--- a/chrome/browser/ui/webui/options2/browser_options_handler2.cc |
+++ b/chrome/browser/ui/webui/options2/browser_options_handler2.cc |
@@ -21,6 +21,7 @@ |
#include "chrome/browser/auto_launch_trial.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/chrome_page_zoom.h" |
+#include "chrome/browser/chrome_select_file_policy.h" |
#include "chrome/browser/custom_home_pages_table_model.h" |
#include "chrome/browser/download/download_prefs.h" |
#include "chrome/browser/instant/instant_controller.h" |
@@ -1039,7 +1040,9 @@ void BrowserOptionsHandler::HandleSelectDownloadLocation( |
SelectFileDialog::SELECT_FOLDER, |
l10n_util::GetStringUTF16(IDS_OPTIONS_DOWNLOADLOCATION_BROWSE_TITLE), |
pref_service->GetFilePath(prefs::kDownloadDefaultDirectory), |
- NULL, 0, FILE_PATH_LITERAL(""), web_ui()->GetWebContents(), |
+ NULL, 0, FILE_PATH_LITERAL(""), |
+ ChromeSelectFilePolicy::DisplayInfobarCallback( |
+ web_ui()->GetWebContents()), |
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), NULL); |
} |