Index: content/public/browser/web_contents_observer.cc |
diff --git a/content/public/browser/web_contents_observer.cc b/content/public/browser/web_contents_observer.cc |
index 48fb25a3ae3c2401e2beb0e3a4e0f932765f5e81..3178b188bd5e65d21ab16ef8c6276121664d0bd8 100644 |
--- a/content/public/browser/web_contents_observer.cc |
+++ b/content/public/browser/web_contents_observer.cc |
@@ -67,12 +67,9 @@ int WebContentsObserver::routing_id() const { |
return web_contents_->GetRoutingID(); |
} |
-void WebContentsObserver::WebContentsImplDestroyed() { |
- // Do cleanup so that 'this' can safely be deleted from WebContentsDestroyed. |
+void WebContentsObserver::ResetWebContents() { |
web_contents_->RemoveObserver(this); |
- WebContentsImpl* contents = web_contents_; |
web_contents_ = NULL; |
- WebContentsDestroyed(contents); |
} |
} // namespace content |