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

Issue 8513008: Schedule idle handler in the foreground tab based on CPU usage and user activity. (Closed)

Created:
9 years, 1 month ago by ulan
Modified:
9 years, 1 month ago
Reviewers:
jam, Matt Perry
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Schedule idle handler in the foreground tab based on CPU usage and user activity. This improves memory usage when the user leaves a tab open for a long time. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111520

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Move PostponeIdleNotification to RenderThreadImpl #

Total comments: 1

Patch Set 4 : Remove redundant 'using' and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -2 lines) Patch
M content/content_renderer.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/idle_user_detector.h View 1 chunk +27 lines, -0 lines 0 comments Download
A content/renderer/idle_user_detector.cc View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 chunks +13 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 7 chunks +53 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ulan
Please take a look. This CL is extracted from http://codereview.chromium.org/8574012/ It schedules the idle handler ...
9 years, 1 month ago (2011-11-16 14:14:45 UTC) #1
Matt Perry
http://codereview.chromium.org/8513008/diff/1/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (right): http://codereview.chromium.org/8513008/diff/1/content/renderer/idle_user_detector.cc#newcode30 content/renderer/idle_user_detector.cc:30: RunIdleHandlerWhenWidgetsHidden()) { On 2011/11/16 14:14:46, ulan wrote: > I ...
9 years, 1 month ago (2011-11-16 19:23:52 UTC) #2
ulan
Uploaded new patch set. http://codereview.chromium.org/8513008/diff/1/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (right): http://codereview.chromium.org/8513008/diff/1/content/renderer/idle_user_detector.cc#newcode30 content/renderer/idle_user_detector.cc:30: RunIdleHandlerWhenWidgetsHidden()) { On 2011/11/16 19:23:52, ...
9 years, 1 month ago (2011-11-16 20:13:21 UTC) #3
Matt Perry
lgtm
9 years, 1 month ago (2011-11-16 21:25:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulan@chromium.org/8513008/6001
9 years, 1 month ago (2011-11-17 08:59:46 UTC) #5
commit-bot: I haz the power
Presubmit check for 8513008-6001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-17 08:59:51 UTC) #6
ulan
John, could you please take a look too?
9 years, 1 month ago (2011-11-17 09:07:42 UTC) #7
jam
http://codereview.chromium.org/8513008/diff/6001/content/public/renderer/render_thread.h File content/public/renderer/render_thread.h (right): http://codereview.chromium.org/8513008/diff/6001/content/public/renderer/render_thread.h#newcode102 content/public/renderer/render_thread.h:102: virtual void PostponeIdleNotification() = 0; we only add stuff ...
9 years, 1 month ago (2011-11-23 17:35:19 UTC) #8
ulan
Thanks for the suggestion! Upload new patch set. http://codereview.chromium.org/8513008/diff/6001/content/public/renderer/render_thread.h File content/public/renderer/render_thread.h (right): http://codereview.chromium.org/8513008/diff/6001/content/public/renderer/render_thread.h#newcode102 content/public/renderer/render_thread.h:102: virtual ...
9 years, 1 month ago (2011-11-23 18:39:15 UTC) #9
jam
lgtm http://codereview.chromium.org/8513008/diff/13001/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (right): http://codereview.chromium.org/8513008/diff/13001/content/renderer/idle_user_detector.cc#newcode12 content/renderer/idle_user_detector.cc:12: using content::RenderThread; nit: not needed
9 years, 1 month ago (2011-11-23 18:42:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ulan@chromium.org/8513008/15002
9 years, 1 month ago (2011-11-24 09:45:46 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-11-24 10:53:50 UTC) #12
Change committed as 111520

Powered by Google App Engine
This is Rietveld 408576698