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

Unified Diff: chrome/browser/ui/omnibox/omnibox_navigation_observer.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/omnibox_navigation_observer.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc b/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc
index 51a19b79cafeb0e157e92f9d981397cb276b1c76..040dbdefa2cfcd57bace95ae91c9f25a2bc92c59 100644
--- a/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc
+++ b/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc
@@ -77,7 +77,7 @@ OmniboxNavigationObserver::~OmniboxNavigationObserver() {
}
void OmniboxNavigationObserver::OnSuccessfulNavigation() {
- if (shortcuts_backend_)
+ if (shortcuts_backend_.get())
shortcuts_backend_->AddOrUpdateShortcut(text_, match_);
}

Powered by Google App Engine
This is Rietveld 408576698