diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 23:36:23 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 23:36:23 +0000 |
commit | 971c16885e6dca38e4f3d5d5ba5b73214e3526e7 (patch) | |
tree | df8db75694b66ac673f8b98dfedf1ef509c1994a /chrome/browser/extensions/extension_process_manager.cc | |
parent | e9e3ffdd0c69ecb48c656bd9bd61a10beb731091 (diff) | |
download | chromium_src-971c16885e6dca38e4f3d5d5ba5b73214e3526e7.zip chromium_src-971c16885e6dca38e4f3d5d5ba5b73214e3526e7.tar.gz chromium_src-971c16885e6dca38e4f3d5d5ba5b73214e3526e7.tar.bz2 |
Retry r27137. Create renderers for ExtensionHosts one at a time to avoid blocking the UI.
I added a process.Close() to the fast shutdown path for renderers. The problem
was that we were trying to use an old terminated process handle.
BUG=14040
TEST=Install a bunch of extensions with toolstrips, then restart Chrome. The
UI should be responsive while the toolstrips are loading.
Review URL: http://codereview.chromium.org/243007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_process_manager.cc')
-rw-r--r-- | chrome/browser/extensions/extension_process_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc index 96e7a25..cec5a45 100644 --- a/chrome/browser/extensions/extension_process_manager.cc +++ b/chrome/browser/extensions/extension_process_manager.cc @@ -86,7 +86,7 @@ ExtensionHost* ExtensionProcessManager::CreateBackgroundHost( ExtensionHost* host = new ExtensionHost(extension, GetSiteInstanceForURL(url), url, ViewType::EXTENSION_BACKGROUND_PAGE); - host->CreateRenderView(NULL); // create a RenderViewHost with no view + host->CreateRenderViewSoon(NULL); // create a RenderViewHost with no view OnExtensionHostCreated(host, true); return host; } |