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

Unified Diff: chrome/browser/download/download_file_picker.cc

Issue 10667026: Start consolidating cross-port file selection code into ui/base/dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_file_picker.cc
diff --git a/chrome/browser/download/download_file_picker.cc b/chrome/browser/download/download_file_picker.cc
index dbac2ae97423e445534adfaf6ea32150b4a04be9..ef0073ec62dddac35fbf03660daee48f82137787 100644
--- a/chrome/browser/download/download_file_picker.cc
+++ b/chrome/browser/download/download_file_picker.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/download/download_file_picker.h"
#include "base/metrics/histogram.h"
+#include "chrome/browser/chrome_select_file_policy.h"
#include "chrome/browser/download/download_prefs.h"
#include "chrome/browser/platform_util.h"
#include "content/public/browser/download_item.h"
@@ -77,11 +78,16 @@ void DownloadFilePicker::Init(DownloadManager* download_manager,
gfx::NativeWindow owning_window = web_contents ?
platform_util::GetTopLevel(web_contents->GetNativeView()) : NULL;
- select_file_dialog_->SelectFile(SelectFileDialog::SELECT_SAVEAS_FILE,
- string16(),
- suggested_path_,
- &file_type_info, 0, FILE_PATH_LITERAL(""),
- web_contents, owning_window, NULL);
+ select_file_dialog_->SelectFile(
+ SelectFileDialog::SELECT_SAVEAS_FILE,
+ string16(),
+ suggested_path_,
+ &file_type_info,
+ 0,
+ FILE_PATH_LITERAL(""),
+ ChromeSelectFilePolicy::DisplayInfobarCallback(web_contents),
+ owning_window,
+ NULL);
}
DownloadFilePicker::~DownloadFilePicker() {

Powered by Google App Engine
This is Rietveld 408576698