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 a2e997d17d6e1852fbb3e7c846b8602ec200975a..aa7ed60567081a810ad56ea91123b595923268b9 100644 |
--- a/chrome/browser/thumbnails/thumbnail_tab_helper.cc |
+++ b/chrome/browser/thumbnails/thumbnail_tab_helper.cc |
@@ -341,7 +341,7 @@ void ThumbnailTabHelper::UpdateThumbnailIfNecessary( |
ThumbnailServiceFactory::GetForProfile(profile); |
// Skip if we don't need to update the thumbnail. |
- if (thumbnail_service == NULL || |
+ if (thumbnail_service.get() == NULL || |
!thumbnail_service->ShouldAcquirePageThumbnail(url)) { |
return; |
} |
@@ -357,7 +357,7 @@ void ThumbnailTabHelper::UpdateThumbnail( |
scoped_refptr<thumbnails::ThumbnailService> thumbnail_service = |
ThumbnailServiceFactory::GetForProfile(profile); |
- if (!thumbnail_service) |
+ if (!thumbnail_service.get()) |
return; |
// Compute the thumbnail score. |