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

Unified Diff: chrome/renderer/extensions/extension_helper.cc

Issue 8343079: Don't close background pages if there is a pending response (callback). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 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
Index: chrome/renderer/extensions/extension_helper.cc
diff --git a/chrome/renderer/extensions/extension_helper.cc b/chrome/renderer/extensions/extension_helper.cc
index f516603ea845b7935625739348fbda31661cd7e5..cdff73b3fad78d8b509f878f1cc53783ba91e696 100644
--- a/chrome/renderer/extensions/extension_helper.cc
+++ b/chrome/renderer/extensions/extension_helper.cc
@@ -197,9 +197,14 @@ void ExtensionHelper::OnExtensionResponse(int request_id,
bool success,
const std::string& response,
const std::string& error) {
+ std::string extension_id;
ExtensionProcessBindings::HandleResponse(
extension_dispatcher_->v8_context_set(), request_id, success,
- response, error);
+ response, error, &extension_id);
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableLazyBackgroundPages))
+ extension_dispatcher_->CheckIdleStatus(extension_id);
}
void ExtensionHelper::OnExtensionMessageInvoke(const std::string& extension_id,
« no previous file with comments | « chrome/renderer/extensions/extension_dispatcher.cc ('k') | chrome/renderer/extensions/extension_process_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698