Index: apps/shell_window.cc |
diff --git a/apps/shell_window.cc b/apps/shell_window.cc |
index 96c6abd7ed63de73d0dbfbbf9d87699b44e5e976..cb018f0d6fc6ad5d09024a2ff7fc7faae37a62c4 100644 |
--- a/apps/shell_window.cc |
+++ b/apps/shell_window.cc |
@@ -183,9 +183,8 @@ void ShellWindow::Init(const GURL& url, |
// about it in case it has any setup to do to make the renderer appear |
// properly. In particular, on Windows, the view's clickthrough region needs |
// to be set. |
- registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_CHANGED, |
- content::Source<content::NavigationController>( |
- &web_contents->GetController())); |
+ registrar_.Add(this, content::NOTIFICATION_WEB_CONTENTS_SWAPPED, |
+ content::Source<content::WebContents>(web_contents)); |
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, |
content::Source<Profile>(profile_)); |
// Close when the browser process is exiting. |
@@ -534,7 +533,7 @@ void ShellWindow::Observe(int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
switch (type) { |
- case content::NOTIFICATION_RENDER_VIEW_HOST_CHANGED: { |
+ case content::NOTIFICATION_WEB_CONTENTS_SWAPPED: { |
// TODO(jianli): once http://crbug.com/123007 is fixed, we'll no longer |
// need to make the native window (ShellWindowViews specially) update |
// the clickthrough region for the new RVH. |