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

Unified Diff: chrome/browser/devtools/devtools_file_helper.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/devtools/devtools_file_helper.cc
diff --git a/chrome/browser/devtools/devtools_file_helper.cc b/chrome/browser/devtools/devtools_file_helper.cc
index b5ef95fcc5a0424caec005cd75200de0c64f6138..db92c6aa2f06d86f63069454967115bc5bef1290 100644
--- a/chrome/browser/devtools/devtools_file_helper.cc
+++ b/chrome/browser/devtools/devtools_file_helper.cc
@@ -18,7 +18,6 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/devtools/devtools_file_watcher.h"
#include "chrome/browser/download/download_prefs.h"
-#include "chrome/browser/platform_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/chrome_select_file_policy.h"
#include "chrome/common/pref_names.h"
@@ -38,6 +37,7 @@
#include "storage/browser/fileapi/isolated_context.h"
#include "storage/common/fileapi/file_system_util.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/gfx/view_util.h"
#include "ui/shell_dialogs/select_file_dialog.h"
using base::Bind;
@@ -76,14 +76,9 @@ class SelectFileDialog : public ui::SelectFileDialog::Listener,
const base::FilePath& default_path) {
AddRef(); // Balanced in the three listener outcomes.
select_file_dialog_->SelectFile(
- type,
- base::string16(),
- default_path,
- NULL,
- 0,
- base::FilePath::StringType(),
- platform_util::GetTopLevel(web_contents_->GetNativeView()),
- NULL);
+ type, base::string16(), default_path, NULL, 0,
+ base::FilePath::StringType(),
+ gfx::GetTopLevel(web_contents_->GetNativeView()), NULL);
}
// ui::SelectFileDialog::Listener implementation.

Powered by Google App Engine
This is Rietveld 408576698