summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_file_picker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download/download_file_picker.cc')
-rw-r--r--chrome/browser/download/download_file_picker.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/download/download_file_picker.cc b/chrome/browser/download/download_file_picker.cc
index 5b908e8..29a1573 100644
--- a/chrome/browser/download/download_file_picker.cc
+++ b/chrome/browser/download/download_file_picker.cc
@@ -11,6 +11,7 @@
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_view.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -82,7 +83,8 @@ void DownloadFilePicker::Init(
file_type_info.include_all_files = true;
file_type_info.support_drive = true;
gfx::NativeWindow owning_window = web_contents ?
- platform_util::GetTopLevel(web_contents->GetNativeView()) : NULL;
+ platform_util::GetTopLevel(web_contents->GetView()->GetNativeView()) :
+ NULL;
select_file_dialog_->SelectFile(
ui::SelectFileDialog::SELECT_SAVEAS_FILE,