diff options
author | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-02 17:29:43 +0000 |
---|---|---|
committer | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-02 17:29:43 +0000 |
commit | 8a34e660e7b6627b71a3b24e6800090f239075bb (patch) | |
tree | e76c3a12d82cd6e6d8dc467596316f0666fd1296 /chrome/browser/extensions/extension_browser_event_router.cc | |
parent | 0b4158e6bc07aea93651c05c3bf26c2152bd9842 (diff) | |
download | chromium_src-8a34e660e7b6627b71a3b24e6800090f239075bb.zip chromium_src-8a34e660e7b6627b71a3b24e6800090f239075bb.tar.gz chromium_src-8a34e660e7b6627b71a3b24e6800090f239075bb.tar.bz2 |
Rip out phantom tabs and corresponding unit tests.
Also get rid of the type enum passed to TabReplacedAt since it can only be one option after phantom tabs are removed.
BUG=none
TEST=compile? good. pass tests? good.
Review URL: http://codereview.chromium.org/3539010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61303 0039d316-1c4b-4281-b951-d872f2087c98
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() {} |