Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4913)

Unified Diff: chrome/browser/extensions/extension_browser_event_router.cc

Issue 6155003: Changes instant so that the newly created tab has a new id. Doing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.h ('k') | chrome/browser/gtk/tabs/tab_strip_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_browser_event_router.cc
diff --git a/chrome/browser/extensions/extension_browser_event_router.cc b/chrome/browser/extensions/extension_browser_event_router.cc
index 6df9edee8c18202ada80bb0ee375b2d1d6bc0ebb..79939494f4ca1c7cd131e566d94f3320f379b069 100644
--- a/chrome/browser/extensions/extension_browser_event_router.cc
+++ b/chrome/browser/extensions/extension_browser_event_router.cc
@@ -466,11 +466,13 @@ void ExtensionBrowserEventRouter::TabChangedAt(TabContentsWrapper* contents,
}
void ExtensionBrowserEventRouter::TabReplacedAt(
+ TabStripModel* tab_strip_model,
TabContentsWrapper* old_contents,
TabContentsWrapper* new_contents,
int index) {
- UnregisterForTabNotifications(old_contents->tab_contents());
- RegisterForTabNotifications(new_contents->tab_contents());
+ TabClosingAt(tab_strip_model, old_contents, index);
+ TabInsertedAt(new_contents, index,
+ tab_strip_model->selected_index() == index);
}
void ExtensionBrowserEventRouter::TabPinnedStateChanged(
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.h ('k') | chrome/browser/gtk/tabs/tab_strip_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698