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

Unified Diff: chrome/renderer/render_view.cc

Issue 6546080: Initialize the minimum timer interval upon RenderView construction,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | « no previous file | webkit/glue/webpreferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 75647)
+++ chrome/renderer/render_view.cc (working copy)
@@ -626,6 +626,9 @@
webview()->initializeMainFrame(this);
if (!frame_name.empty())
webview()->mainFrame()->setName(frame_name);
+ webview()->settings()->setMinimumTimerInterval(
+ is_hidden() ? webkit_glue::kBackgroundTabTimerInterval :
+ webkit_glue::kForegroundTabTimerInterval);
darin (slow to review) 2011/02/23 01:00:12 nit: it is more common to indent this line so that
OnSetRendererPrefs(renderer_prefs);
« no previous file with comments | « no previous file | webkit/glue/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698