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

Unified Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 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
« no previous file with comments | « chrome/browser/tab_contents/tab_util.cc ('k') | chrome/browser/tabs/tab_strip_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/thumbnail_generator.cc
diff --git a/chrome/browser/tab_contents/thumbnail_generator.cc b/chrome/browser/tab_contents/thumbnail_generator.cc
index 76c63c8a7e084761aa30b5568db1f5713c247fa1..5daa81830f5cf33c894a6eb47a336fee49e18f1f 100644
--- a/chrome/browser/tab_contents/thumbnail_generator.cc
+++ b/chrome/browser/tab_contents/thumbnail_generator.cc
@@ -232,7 +232,7 @@ void ThumbnailGenerator::AskForSnapshot(RenderWidgetHost* renderer,
// which is responsible for closing it.
TransportDIB::Handle renderer_dib_handle;
DuplicateHandle(GetCurrentProcess(), thumbnail_dib->handle(),
- renderer->process()->GetHandle(), &renderer_dib_handle,
+ renderer->GetProcess()->GetHandle(), &renderer_dib_handle,
STANDARD_RIGHTS_REQUIRED | FILE_MAP_READ | FILE_MAP_WRITE,
FALSE, 0);
if (!renderer_dib_handle) {
@@ -467,7 +467,7 @@ void ThumbnailGenerator::UpdateThumbnail(
// Compute the thumbnail score.
ThumbnailScore score;
score.at_top =
- (web_contents->GetRenderViewHost()->last_scroll_offset().y() == 0);
+ (web_contents->GetRenderViewHost()->GetLastScrollOffset().y() == 0);
score.boring_score = ThumbnailGenerator::CalculateBoringScore(&thumbnail);
score.good_clipping =
(clip_result == ThumbnailGenerator::kTallerThanWide ||
« no previous file with comments | « chrome/browser/tab_contents/tab_util.cc ('k') | chrome/browser/tabs/tab_strip_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698