diff options
author | yurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 08:03:18 +0000 |
---|---|---|
committer | yurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 08:03:18 +0000 |
commit | 406027c015b3be7a30d22d2e521ff4bcf8c492b0 (patch) | |
tree | 8e65fc910a051d1343902af1830158987de37378 /chrome/browser/extensions/extension_host.cc | |
parent | 111adbb9d5b7ac64dbb5009f47bba23a564b7229 (diff) | |
download | chromium_src-406027c015b3be7a30d22d2e521ff4bcf8c492b0.zip chromium_src-406027c015b3be7a30d22d2e521ff4bcf8c492b0.tar.gz chromium_src-406027c015b3be7a30d22d2e521ff4bcf8c492b0.tar.bz2 |
DevTools: attach devtools front-end earlier when extension background page is reloaded
When inspected background page of an extension is reloaded DevTools frontend should be attached to the new RenderView right after it processed OnNavigate request, otherwise inspector will miss messages written to console from the background page inline scripts.
BUG=56185
TEST=
Review URL: http://codereview.chromium.org/3503003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60619 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_host.cc')
-rw-r--r-- | chrome/browser/extensions/extension_host.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc index 0acc018..47f66cf 100644 --- a/chrome/browser/extensions/extension_host.cc +++ b/chrome/browser/extensions/extension_host.cc @@ -210,6 +210,9 @@ void ExtensionHost::CreateRenderViewNow() { render_view_host_->CreateRenderView(string16()); NavigateToURL(url_); DCHECK(IsRenderViewLive()); + if (is_background_page()) + profile_->GetExtensionsService()->DidCreateRenderViewForBackgroundPage( + this); } Browser* ExtensionHost::GetBrowser() const { |