Index: chrome/browser/dom_distiller/tab_utils.cc |
diff --git a/chrome/browser/dom_distiller/tab_utils.cc b/chrome/browser/dom_distiller/tab_utils.cc |
index 1fbcd3f4775a0b8d0cbf16251ab6f9ad8264217a..7ddd29ccebbadbb5680a450aa99796850a4cc86b 100644 |
--- a/chrome/browser/dom_distiller/tab_utils.cc |
+++ b/chrome/browser/dom_distiller/tab_utils.cc |
@@ -61,9 +61,6 @@ class SelfDeletingRequestDelegate : public ViewRequestDelegate, |
// The handle to the view request towards the DomDistillerService. It |
// needs to be kept around to ensure the distillation request finishes. |
scoped_ptr<ViewerHandle> viewer_handle_; |
- |
- // The WebContents this class is tracking. |
- content::WebContents* web_contents_; |
}; |
void SelfDeletingRequestDelegate::DidNavigateMainFrame( |
@@ -83,12 +80,10 @@ void SelfDeletingRequestDelegate::WebContentsDestroyed() { |
SelfDeletingRequestDelegate::SelfDeletingRequestDelegate( |
content::WebContents* web_contents) |
- : web_contents_(web_contents) { |
- content::WebContentsObserver::Observe(web_contents_); |
+ : WebContentsObserver(web_contents) { |
} |
SelfDeletingRequestDelegate::~SelfDeletingRequestDelegate() { |
- content::WebContentsObserver::Observe(NULL); |
} |
void SelfDeletingRequestDelegate::OnArticleReady( |