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

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

Issue 1348833003: Fix NTP thumbnail generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Watch for destruction of web_contents. Created 5 years, 2 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/thumbnailing_context.cc
diff --git a/chrome/browser/thumbnails/thumbnailing_context.cc b/chrome/browser/thumbnails/thumbnailing_context.cc
index 04765e640550aaadb791ecf188739fa49b4c98ad..5a5ccb9be5b8209cd6d7f4c944bcfe12c9052ef1 100644
--- a/chrome/browser/thumbnails/thumbnailing_context.cc
+++ b/chrome/browser/thumbnails/thumbnailing_context.cc
@@ -12,7 +12,8 @@ namespace thumbnails {
ThumbnailingContext::ThumbnailingContext(content::WebContents* web_contents,
ThumbnailService* receiving_service,
bool load_interrupted)
- : service(receiving_service),
+ : content::WebContentsObserver(web_contents),
+ service(receiving_service),
url(web_contents->GetURL()),
clip_result(CLIP_RESULT_UNPROCESSED) {
score.at_top =

Powered by Google App Engine
This is Rietveld 408576698