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

Issue 60613004: Add KeepaliveImpulse to extension process manager. (Closed)

Created:
7 years, 1 month ago by scheib
Modified:
7 years ago
Reviewers:
tapted, Matt Perry
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add KeepaliveImpulse to extension process manager. Impulses are an efficient way to handle certain types of activity from extensions. E.g. the work in progress to keep NaCl plugins in background pages alive. An Increment / Decrement approach would require extensive and fragile instrumentation of all APIs. Impulses can be sent upon any api activity and act as an implicit increment with a timed out decrement. See design doc: https://docs.google.com/a/chromium.org/document/d/1mI0lS1rfAf-BAGLmWAEcWy37Xq9dOvgfMx8OqeUMXts/edit# BUG=298339 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238261

Patch Set 1 : #

Total comments: 4

Patch Set 2 : mpcomplete comments on patch 2 updated: indent and method name #

Patch Set 3 : Require non zero idle time (and fix FromSeconds for suspend time) #

Patch Set 4 : Back to 1sec times for tests. #

Total comments: 10

Patch Set 5 : tapted comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -33 lines) Patch
M chrome/browser/apps/app_browsertest_util.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/system_indicator/system_indicator_apitest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/lazy_background_page_apitest.cc View 1 2 3 2 chunks +36 lines, -2 lines 0 comments Download
M chrome/browser/extensions/notifications_apitest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/process_manager.h View 1 2 3 4 2 chunks +14 lines, -2 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 2 3 4 5 chunks +75 lines, -19 lines 0 comments Download
M extensions/common/switches.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 1 comment Download

Messages

Total messages: 12 (0 generated)
scheib
7 years, 1 month ago (2013-11-19 20:29:56 UTC) #1
Matt Perry
lgtm https://codereview.chromium.org/60613004/diff/20004/extensions/browser/process_manager.cc File extensions/browser/process_manager.cc (right): https://codereview.chromium.org/60613004/diff/20004/extensions/browser/process_manager.cc#newcode388 extensions/browser/process_manager.cc:388: int ProcessManager::DecrementLazyKeepaliveCountById(std::string extension_id) { nit: I think this ...
7 years, 1 month ago (2013-11-19 21:35:07 UTC) #2
scheib
Thanks, comments addressed. Hmm, lots of try job failures with e.g. ExtensionNotificationRegistration ProcessGrouping EventPage timing ...
7 years, 1 month ago (2013-11-19 23:18:25 UTC) #3
Matt Perry
The unit_test failures look like maybe MessageLoop::current() is NULL. I don't know why the browser_tests ...
7 years, 1 month ago (2013-11-19 23:31:38 UTC) #4
scheib
Matt, please take a look at my change to test specified idle & suspend times ...
7 years, 1 month ago (2013-11-21 21:17:17 UTC) #5
scheib
I've set the test timeout and suspend values back to 1 second. There are tests ...
7 years ago (2013-11-28 00:17:50 UTC) #6
scheib
tapted, please take a look (and for owners coverage). This expanded when I updated the ...
7 years ago (2013-11-28 00:23:00 UTC) #7
tapted
apps/app_browsertest_util.cc lgtm I wanted to make sure I understood what was going on though -- ...
7 years ago (2013-11-28 03:03:36 UTC) #8
tapted
oops something else I noticed -- The comments in extensions/common/switches.cc still say "time in seconds.." ...
7 years ago (2013-11-28 05:05:24 UTC) #9
scheib
Thanks, comments addressed. https://codereview.chromium.org/60613004/diff/740001/extensions/browser/process_manager.cc File extensions/browser/process_manager.cc (right): https://codereview.chromium.org/60613004/diff/740001/extensions/browser/process_manager.cc#newcode211 extensions/browser/process_manager.cc:211: CHECK(idle_time_msec > 0); // OnKeepaliveImpulseCheck requires ...
7 years ago (2013-12-02 21:22:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/60613004/760001
7 years ago (2013-12-02 21:24:05 UTC) #11
commit-bot: I haz the power
7 years ago (2013-12-03 01:25:34 UTC) #12
Message was sent while issue was closed.
Change committed as 238261

Powered by Google App Engine
This is Rietveld 408576698