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

Unified Diff: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc

Issue 505913002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add {} Created 6 years, 4 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/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_);
}

Powered by Google App Engine
This is Rietveld 408576698