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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api.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/extensions/api/downloads/downloads_api.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/browser/extensions/api/downloads/downloads_api.cc
index 0f27c084dd22afe204206a490f69afd9f98a1b2c..4bd034f52874acb7b9c45b9f3025225c7cdc3c1e 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
@@ -1507,8 +1507,8 @@ bool DownloadsGetFileIconFunction::RunAsync() {
content::WebContents* web_contents =
dispatcher()->GetVisibleWebContents();
if (web_contents) {
- scale = ui::GetScaleFactorForNativeView(
- web_contents->GetRenderWidgetHostView()->GetNativeView());
+ scale =
+ web_contents->GetRenderWidgetHostView()->GetScaleFactorForNativeView();
}
EXTENSION_FUNCTION_VALIDATE(icon_extractor_->ExtractIconURLForPath(
download_item->GetTargetFilePath(),

Powered by Google App Engine
This is Rietveld 408576698