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

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

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: add missing files Created 3 years, 10 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 07d1ca315d3e2d5660be2e8b58da13d35b996222..caab315031bebcfa37316eab15d21ece2bf9e3f2 100644
--- a/chrome/browser/download/download_file_picker.cc
+++ b/chrome/browser/download/download_file_picker.cc
@@ -6,12 +6,12 @@
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/download/download_prefs.h"
-#include "chrome/browser/platform_util.h"
#include "chrome/browser/ui/chrome_select_file_policy.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/web_contents.h"
+#include "ui/gfx/view_util.h"
using content::DownloadItem;
using content::DownloadManager;
@@ -85,8 +85,8 @@ DownloadFilePicker::DownloadFilePicker(
file_type_info.include_all_files = true;
file_type_info.allowed_paths =
ui::SelectFileDialog::FileTypeInfo::NATIVE_OR_DRIVE_PATH;
- gfx::NativeWindow owning_window = web_contents ?
- platform_util::GetTopLevel(web_contents->GetNativeView()) : NULL;
+ gfx::NativeWindow owning_window =
+ web_contents ? gfx::GetTopLevel(web_contents->GetNativeView()) : NULL;
select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_SAVEAS_FILE,
base::string16(),

Powered by Google App Engine
This is Rietveld 408576698