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

Unified Diff: chrome/browser/extensions/extension_host.cc

Issue 10804020: Introduce runtime.onSuspendCanceled() event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 8 years, 5 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/browser/extensions/extension_host.cc
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index 7d2730dcb2811f057e3447a4c31b87f0261cf051..43cbd815de5b0fd8d17dcf034dbeb13dc06f735e 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -422,8 +422,7 @@ void ExtensionHost::WillRunJavaScriptDialog() {
ExtensionProcessManager* pm =
ExtensionSystem::Get(profile_)->process_manager();
if (pm)
- pm->IncrementLazyKeepaliveCount(
- extension(), ExtensionProcessManager::DONT_CANCEL_SUSPEND);
+ pm->IncrementLazyKeepaliveCount(extension());
}
void ExtensionHost::DidCloseJavaScriptDialog() {
@@ -512,8 +511,7 @@ void ExtensionHost::OnIncrementLazyKeepaliveCount() {
ExtensionProcessManager* pm =
ExtensionSystem::Get(profile_)->process_manager();
if (pm)
- pm->IncrementLazyKeepaliveCount(
- extension(), ExtensionProcessManager::DONT_CANCEL_SUSPEND);
+ pm->IncrementLazyKeepaliveCount(extension());
}
void ExtensionHost::OnDecrementLazyKeepaliveCount() {

Powered by Google App Engine
This is Rietveld 408576698