Index: chrome/browser/extensions/extension_browser_event_router.cc |
=================================================================== |
--- chrome/browser/extensions/extension_browser_event_router.cc (revision 115228) |
+++ chrome/browser/extensions/extension_browser_event_router.cc (working copy) |
@@ -142,8 +142,9 @@ |
void ExtensionBrowserEventRouter::RegisterForTabNotifications( |
TabContents* contents) { |
- registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
- content::Source<NavigationController>(&contents->controller())); |
+ registrar_.Add( |
+ this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
+ content::Source<NavigationController>(&contents->GetController())); |
// Observing TAB_CONTENTS_DESTROYED is necessary because it's |
// possible for tabs to be created, detached and then destroyed without |
@@ -156,7 +157,7 @@ |
void ExtensionBrowserEventRouter::UnregisterForTabNotifications( |
TabContents* contents) { |
registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
- content::Source<NavigationController>(&contents->controller())); |
+ content::Source<NavigationController>(&contents->GetController())); |
registrar_.Remove(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED, |
content::Source<TabContents>(contents)); |
} |
@@ -541,7 +542,7 @@ |
// Tab was destroyed after being detached (without being re-attached). |
TabContents* contents = content::Source<TabContents>(source).ptr(); |
registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
- content::Source<NavigationController>(&contents->controller())); |
+ content::Source<NavigationController>(&contents->GetController())); |
registrar_.Remove(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED, |
content::Source<TabContents>(contents)); |
} else if (type == chrome::NOTIFICATION_BROWSER_WINDOW_READY) { |