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

Unified Diff: content/common/mac/app_nap_activity.h

Issue 2914913002: [Mac] Enable AppNap for renderers (Closed)
Patch Set: Clean up Created 3 years, 7 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: content/common/mac/app_nap_activity.h
diff --git a/content/common/mac/app_nap_activity.h b/content/common/mac/app_nap_activity.h
index c07f9ee8941d548b4eb30d27046909fd8724c371..c2896e8390c283b5a4084ec01ba5457503e91164 100644
--- a/content/common/mac/app_nap_activity.h
+++ b/content/common/mac/app_nap_activity.h
@@ -27,6 +27,10 @@ class CONTENT_EXPORT AppNapActivity {
AppNapActivity();
~AppNapActivity();
+ // Because there's no NSApplication in renderers, do some housekeeping
+ // to become eligible for App Nap.
+ static void InitializeAppNapSupport();
+
// Begin an activity and store the provided token.
void Begin();

Powered by Google App Engine
This is Rietveld 408576698