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 8b280a3c7d6683a8b5619b237a24e5f84a841a49..1a2391d99631cd53840aeb0d1f5c3f858b9119ec 100644 |
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc |
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc |
@@ -122,23 +122,6 @@ class NotificationsApiDelegate : public NotificationDelegate { |
return scoped_id_; |
} |
- virtual content::WebContents* GetWebContents() const override { |
- // We're holding a reference to api_function_, so we know it'll be valid |
- // until ReleaseRVH is called, and api_function_ (as a |
- // AsyncExtensionFunction) will zero out its copy of render_view_host |
- // when the RVH goes away. |
- if (!api_function_.get()) |
- return NULL; |
- content::RenderViewHost* rvh = api_function_->render_view_host(); |
- if (!rvh) |
- return NULL; |
- return content::WebContents::FromRenderViewHost(rvh); |
- } |
- |
- virtual void ReleaseRenderViewHost() override { |
- api_function_ = NULL; |
- } |
- |
private: |
virtual ~NotificationsApiDelegate() {} |