diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-31 23:25:14 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-31 23:25:14 +0000 |
commit | 2914600dedd1b9c37b3844d5f878c063a7d2c106 (patch) | |
tree | c2d343dda665060d69b7167154074452a8918764 /chrome/browser/extensions/extension_devtools_bridge.cc | |
parent | 5f372f899b8709dac700710b5f0f90959dcf9ecb (diff) | |
download | chromium_src-2914600dedd1b9c37b3844d5f878c063a7d2c106.zip chromium_src-2914600dedd1b9c37b3844d5f878c063a7d2c106.tar.gz chromium_src-2914600dedd1b9c37b3844d5f878c063a7d2c106.tar.bz2 |
Makes devtools handle tab replaced notification. This
works, but it causes a rather noticable flash as the inspector
reloads. Do you have a suggestion of making it not do that?
For background, when instant is enabled as you type in the omnibox a
new tabcontents is created and overlaid on top of the existing tab. If
the user presses enter or clicks on the page the instant tab replaced
the old tab.
BUG=68685
TEST=none
Review URL: http://codereview.chromium.org/6172002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_devtools_bridge.cc')
-rw-r--r-- | chrome/browser/extensions/extension_devtools_bridge.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_devtools_bridge.cc b/chrome/browser/extensions/extension_devtools_bridge.cc index 71422ca..7035ded 100644 --- a/chrome/browser/extensions/extension_devtools_bridge.cc +++ b/chrome/browser/extensions/extension_devtools_bridge.cc @@ -140,6 +140,12 @@ void ExtensionDevToolsBridge::SendMessageToClient(const IPC::Message& msg) { IPC_END_MESSAGE_MAP() } +void ExtensionDevToolsBridge::TabReplaced(TabContentsWrapper* new_tab) { + DCHECK_EQ(profile_, new_tab->profile()); + // We don't update the tab id as it needs to remain the same so that we can + // properly unregister. +} + void ExtensionDevToolsBridge::OnDispatchOnInspectorFrontend( const std::string& data) { DCHECK_EQ(MessageLoop::current()->type(), MessageLoop::TYPE_UI); |