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

Unified Diff: content/public/common/web_preferences.cc

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: Created 4 years, 1 month 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/public/common/web_preferences.cc
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index 7a4fe1ef46fd0ad5f0c12004c52d09ad1ea03fa1..764327c336c194ab997bd8a2ead132cefb355363 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -181,6 +181,10 @@ WebPreferences::WebPreferences()
animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED),
user_gesture_required_for_presentation(true),
text_track_margin_percentage(0.0f),
+ expensive_background_throttling_cpu_budget(-1),
alex clarke (OOO till 29th) 2016/11/02 17:53:48 -1.0f etc? (to match code below)
altimin 2016/11/02 21:10:01 Done.
+ expensive_background_throttling_initial_budget(1),
+ expensive_background_throttling_max_budget(1),
+ expensive_background_throttling_max_delay(-1),
#if defined(OS_ANDROID)
text_autosizing_enabled(true),
font_scale_factor(1.0f),
@@ -216,8 +220,7 @@ WebPreferences::WebPreferences()
default_minimum_page_scale_factor(1.f),
default_maximum_page_scale_factor(4.f),
#endif
- hide_download_ui(false)
-{
+ hide_download_ui(false) {
standard_font_family_map[kCommonScript] =
base::ASCIIToUTF16("Times New Roman");
fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New");

Powered by Google App Engine
This is Rietveld 408576698