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

Unified Diff: chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm

Issue 591493002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Created 6 years, 3 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/cocoa/location_bar/origin_chip_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm b/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm
index 96a79e3f0fb9e07cbe6b1937554093a3582449ff..63e03f2e8dbc885297e4eb7de7fc7e1230cb7b7d 100644
--- a/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm
@@ -79,14 +79,14 @@ OriginChipDecoration::OriginChipDecoration(
// May not be set for unit tests.
scoped_refptr<SafeBrowsingService> sb_service =
g_browser_process->safe_browsing_service();
- if (sb_service.get() && sb_service->ui_manager())
+ if (sb_service.get() && sb_service->ui_manager().get())
sb_service->ui_manager()->AddObserver(this);
}
OriginChipDecoration::~OriginChipDecoration() {
scoped_refptr<SafeBrowsingService> sb_service =
g_browser_process->safe_browsing_service();
- if (sb_service.get() && sb_service->ui_manager())
+ if (sb_service.get() && sb_service->ui_manager().get())
sb_service->ui_manager()->RemoveObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698