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

Unified Diff: chrome/browser/file_select_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/file_select_helper.cc
diff --git a/chrome/browser/file_select_helper.cc b/chrome/browser/file_select_helper.cc
index cc5da5514d64df4568e65b5ddb3d16bf80f95145..86ff44d80d633b3ce6538631ddb4b49492d18ad4 100644
--- a/chrome/browser/file_select_helper.cc
+++ b/chrome/browser/file_select_helper.cc
@@ -18,7 +18,6 @@
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/platform_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
@@ -41,6 +40,7 @@
#include "net/base/filename_util.h"
#include "net/base/mime_util.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/gfx/view_util.h"
#include "ui/shell_dialogs/selected_file_info.h"
#if defined(OS_CHROMEOS)
@@ -591,7 +591,7 @@ void FileSelectHelper::RunFileChooserOnUIThread(
}
gfx::NativeWindow owning_window =
- platform_util::GetTopLevel(web_contents_->GetNativeView());
+ gfx::GetTopLevel(web_contents_->GetNativeView());
#if defined(OS_ANDROID)
// Android needs the original MIME types and an additional capture value.

Powered by Google App Engine
This is Rietveld 408576698