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

Unified Diff: chrome/browser/thumbnails/thumbnail_tab_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/thumbnails/thumbnail_tab_helper.cc
diff --git a/chrome/browser/thumbnails/thumbnail_tab_helper.cc b/chrome/browser/thumbnails/thumbnail_tab_helper.cc
index bfc5005ee5412ccaaee552edd09b82a2e892d662..0587272115c5b896c37065563ad3a0d1f2d7c889 100644
--- a/chrome/browser/thumbnails/thumbnail_tab_helper.cc
+++ b/chrome/browser/thumbnails/thumbnail_tab_helper.cc
@@ -168,8 +168,7 @@ void ThumbnailTabHelper::AsyncProcessThumbnail(
load_interrupted_);
ui::ScaleFactor scale_factor =
- ui::GetSupportedScaleFactor(
- ui::GetScaleFactorForNativeView(view->GetNativeView()));
+ ui::GetSupportedScaleFactor(view->GetScaleFactorForNativeView());
thumbnailing_context_->clip_result = algorithm->GetCanvasCopyInfo(
copy_rect.size(),
scale_factor,

Powered by Google App Engine
This is Rietveld 408576698