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

Unified Diff: extensions/browser/process_manager.h

Issue 547003002: Remove the --event-page-idle-time and --event-page-suspending-time switches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: 1s Created 6 years, 3 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
« no previous file with comments | « chrome/browser/extensions/notifications_apitest.cc ('k') | extensions/browser/process_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/process_manager.h
diff --git a/extensions/browser/process_manager.h b/extensions/browser/process_manager.h
index e7be9951e03233c48dfa27100a3bad0ade98e704..3adebe5ccdc5725a800e0f3d5abb86eb12688472 100644
--- a/extensions/browser/process_manager.h
+++ b/extensions/browser/process_manager.h
@@ -148,6 +148,16 @@ class ProcessManager : public content::NotificationObserver {
void SetKeepaliveImpulseDecrementCallbackForTesting(
const ImpulseCallbackForTesting& callback);
+ // Sets the time in milliseconds that an extension event page can
+ // be idle before it is shut down; must be > 0.
+ static void SetEventPageIdleTimeForTesting(unsigned idle_time_msec);
+
+ // Sets the time in milliseconds that an extension event page has
+ // between being notified of its impending unload and that unload
+ // happening.
+ static void SetEventPageSuspendingTimeForTesting(
+ unsigned suspending_time_msec);
+
// Creates a non-incognito instance for tests. |registry| allows unit tests
// to inject an ExtensionRegistry that is not managed by the usual
// BrowserContextKeyedServiceFactory system.
@@ -248,14 +258,6 @@ class ProcessManager : public content::NotificationObserver {
BackgroundPageDataMap background_page_data_;
- // The time to delay between an extension becoming idle and
- // sending a ShouldSuspend message; read from command-line switch.
- base::TimeDelta event_page_idle_time_;
-
- // The time to delay between sending a ShouldSuspend message and
- // sending a Suspend message; read from command-line switch.
- base::TimeDelta event_page_suspending_time_;
-
// True if we have created the startup set of background hosts.
bool startup_background_hosts_created_;
« no previous file with comments | « chrome/browser/extensions/notifications_apitest.cc ('k') | extensions/browser/process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698