Index: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
diff --git a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
index 3b9df359990d19e6423127e21cd75bdc5999c328..49759d966bb589e6aba24c7bf0be85d15fc482f6 100644 |
--- a/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
+++ b/chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc |
@@ -69,7 +69,7 @@ bool AlternateNavInfoBarDelegate::LinkClicked( |
// search and instead add one reflecting this navigation. |
scoped_refptr<ShortcutsBackend> shortcuts_backend( |
ShortcutsBackendFactory::GetForProfile(profile_)); |
- if (shortcuts_backend) { // May be NULL in incognito. |
+ if (shortcuts_backend.get()) { // May be NULL in incognito. |
shortcuts_backend->DeleteShortcutsWithURL(search_url_); |
shortcuts_backend->AddOrUpdateShortcut(text_, match_); |
} |