Index: ui/views/controls/webview/webview.cc |
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc |
index 9169ac0ecbf66b0d634419bc25f87f95f9e61aa9..7d12655ad9b2cd1153a818b5226995370ca56e6f 100644 |
--- a/ui/views/controls/webview/webview.cc |
+++ b/ui/views/controls/webview/webview.cc |
@@ -262,8 +262,7 @@ void WebView::AttachWebContents() { |
registrar_.Add( |
this, |
content::NOTIFICATION_RENDER_VIEW_HOST_CHANGED, |
- content::Source<content::NavigationController>( |
- &web_contents_->GetController())); |
+ content::Source<content::WebContents>(web_contents_)); |
registrar_.Add( |
this, |
content::NOTIFICATION_WEB_CONTENTS_DESTROYED, |