| 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 8e268779a2493d13c874e1d72fbaff644d9e5434..a11a775c3a803f8a202bcab7e31aa52bfaa2c653 100644
|
| --- a/chrome/browser/tab_contents/thumbnail_generator.cc
|
| +++ b/chrome/browser/tab_contents/thumbnail_generator.cc
|
| @@ -440,9 +440,10 @@ SkBitmap ThumbnailGenerator::GetClippedBitmap(const SkBitmap& bitmap,
|
| void ThumbnailGenerator::UpdateThumbnailIfNecessary(
|
| TabContents* tab_contents) {
|
| const GURL& url = tab_contents->GetURL();
|
| - history::TopSites* top_sites = tab_contents->profile()->GetTopSites();
|
| + Profile* profile = static_cast<Profile*>(tab_contents->browser_context());
|
| + history::TopSites* top_sites = profile->GetTopSites();
|
| // Skip if we don't need to update the thumbnail.
|
| - if (!ShouldUpdateThumbnail(tab_contents->profile(), top_sites, url))
|
| + if (!ShouldUpdateThumbnail(profile, top_sites, url))
|
| return;
|
|
|
| const int options = ThumbnailGenerator::kClippedThumbnail;
|
|
|