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

Unified Diff: chrome/browser/thumbnails/thumbnailing_context.cc

Issue 525523003: Remove two unnecessary params in ViewHostMsg_UpdateRect_Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 4 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/thumbnails/thumbnailing_context.cc
diff --git a/chrome/browser/thumbnails/thumbnailing_context.cc b/chrome/browser/thumbnails/thumbnailing_context.cc
index 2457ebbdaef91ad49177ab5225ef2c517c1a8314..04765e640550aaadb791ecf188739fa49b4c98ad 100644
--- a/chrome/browser/thumbnails/thumbnailing_context.cc
+++ b/chrome/browser/thumbnails/thumbnailing_context.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/thumbnails/thumbnailing_context.h"
#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_widget_host_view.h"
namespace thumbnails {
@@ -15,7 +16,7 @@ ThumbnailingContext::ThumbnailingContext(content::WebContents* web_contents,
url(web_contents->GetURL()),
clip_result(CLIP_RESULT_UNPROCESSED) {
score.at_top =
- (web_contents->GetRenderViewHost()->GetLastScrollOffset().y() == 0);
+ (web_contents->GetRenderWidgetHostView()->GetLastScrollOffset().y() == 0);
score.load_completed = !web_contents->IsLoading() && !load_interrupted;
}
@@ -26,4 +27,4 @@ ThumbnailingContext::ThumbnailingContext()
ThumbnailingContext::~ThumbnailingContext() {
}
-}
+} // namespace thumbnails
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698