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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/themes/theme_syncable_service_unittest.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/themes/theme_syncable_service_unittest.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698