diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-27 23:07:36 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-27 23:07:36 +0000 |
commit | 720ad1313aab8cf479c5502c36ce30cc7dba685d (patch) | |
tree | ab8e35069b49cffe88d501e13b92ec4dddbafe6f /chrome/browser/extensions/extension_function.cc | |
parent | 268a9f260dffdc1111b4eba5901e6b55077397f6 (diff) | |
download | chromium_src-720ad1313aab8cf479c5502c36ce30cc7dba685d.zip chromium_src-720ad1313aab8cf479c5502c36ce30cc7dba685d.tar.gz chromium_src-720ad1313aab8cf479c5502c36ce30cc7dba685d.tar.bz2 |
Change the way lazy background pages shutdown.
The browser process now keeps a generic count of activity from the lazy background page. This will be used for all types of activity, such as outstanding events, resource requests, and API calls.
BUG=81752
TEST=no
Review URL: https://chromiumcodereview.appspot.com/9447042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function.cc')
-rw-r--r-- | chrome/browser/extensions/extension_function.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc index 0519aa5..4299d5c 100644 --- a/chrome/browser/extensions/extension_function.cc +++ b/chrome/browser/extensions/extension_function.cc @@ -151,6 +151,8 @@ UIThreadExtensionFunction::UIThreadExtensionFunction() } UIThreadExtensionFunction::~UIThreadExtensionFunction() { + if (dispatcher()) + dispatcher()->OnExtensionFunctionCompleted(GetExtension()); } UIThreadExtensionFunction* |