Index: chrome/browser/extensions/api/notifications/notifications_api.cc |
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc |
index 597cc8a7772b7ac4b665aece8db866d9ab9e266f..3bacbadcacd6632c5afd96df7171cc13d63f01d3 100644 |
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc |
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc |
@@ -58,7 +58,7 @@ class NotificationsApiDelegate : public NotificationDelegate { |
id_(id), |
scoped_id_(CreateScopedIdentifier(extension_id, id)), |
process_id_(-1) { |
- DCHECK(api_function_); |
+ DCHECK(api_function_.get()); |
if (api_function_->render_view_host()) |
process_id_ = api_function->render_view_host()->GetProcess()->GetID(); |
} |
@@ -105,7 +105,7 @@ class NotificationsApiDelegate : public NotificationDelegate { |
// until ReleaseRVH is called, and api_function_ (as a |
// UIThreadExtensionFunction) will zero out its copy of render_view_host |
// when the RVH goes away. |
- if (!api_function_) |
+ if (!api_function_.get()) |
return NULL; |
return api_function_->render_view_host(); |
} |