diff options
Diffstat (limited to 'chrome/browser/extensions/extension_browser_event_router.cc')
-rw-r--r-- | chrome/browser/extensions/extension_browser_event_router.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/chrome/browser/extensions/extension_browser_event_router.cc b/chrome/browser/extensions/extension_browser_event_router.cc index cae6bfd..ef10800 100644 --- a/chrome/browser/extensions/extension_browser_event_router.cc +++ b/chrome/browser/extensions/extension_browser_event_router.cc @@ -426,15 +426,12 @@ void ExtensionBrowserEventRouter::TabChangedAt(TabContents* contents, void ExtensionBrowserEventRouter::TabReplacedAt(TabContents* old_contents, TabContents* new_contents, - int index, - TabReplaceType type) { - if (type == REPLACE_MATCH_PREVIEW) { - // The ids of the two tabs should remain the same: - DCHECK_EQ(old_contents->controller().session_id().id(), - new_contents->controller().session_id().id()); - UnregisterForTabNotifications(old_contents); - RegisterForTabNotifications(new_contents); - } + int index) { + // The ids of the two tabs should remain the same: + DCHECK_EQ(old_contents->controller().session_id().id(), + new_contents->controller().session_id().id()); + UnregisterForTabNotifications(old_contents); + RegisterForTabNotifications(new_contents); } void ExtensionBrowserEventRouter::TabStripEmpty() {} |