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

Issue 3801008: Expands the chrome.experimental.processes extension API. ... (Closed)

Created:
10 years, 2 months ago by Charlie Reis
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org, rafaelw, Jay Civelli
Visibility:
Public.

Description

Expands the chrome.experimental.processes extension API. Adds an onUpdated event that reports process metrics from the TaskManager, and modifies the TaskManager to support multiple independent observers. BUG=32302 TEST=ExtensionApiTest.Processes browsertest TEST=process_monitor sample extension Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63116

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 33

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 9

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1116 lines, -222 lines) Patch
M chrome/browser/cocoa/task_manager_mac_unittest.mm View 1 chunk +1 line, -0 lines 0 comments Download
MM chrome/browser/extensions/extension_event_router.cc View 6 7 8 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_processes_api.h View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api.cc View 1 2 3 4 5 6 7 8 1 chunk +148 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api_constants.h View 1 2 3 4 5 1 chunk +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_processes_api_constants.cc View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_processes_apitest.cc View 1 2 3 4 5 1 chunk +35 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/gtk/task_manager_gtk.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager.h View 1 2 3 4 5 7 chunks +51 lines, -21 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 2 3 4 5 16 chunks +54 lines, -20 lines 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.h View 5 5 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 5 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 2 chunks +42 lines, -7 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/processes/process_monitor/icon.png View Binary file 0 comments Download
A chrome/common/extensions/docs/examples/api/processes/process_monitor/manifest.json View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.html View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/processes/show_tabs/popup.html View 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/common/extensions/docs/experimental.processes.html View 1 2 3 4 5 9 chunks +371 lines, -26 lines 0 comments Download
M chrome/common/extensions/docs/samples.html View 1 2 3 4 5 4 chunks +43 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 10 chunks +34 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/permissions/enabled/background.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/a.html View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/a.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/b.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/manifest.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/processes/api/test.js View 1 2 3 3 chunks +77 lines, -13 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/b.html View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/manifest.json View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
A chrome/test/data/extensions/api_test/processes/onupdated/background.html View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/processes/onupdated/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
D chrome/test/data/extensions/api_test/processes/test.html View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/processes/test.js View 1 2 3 4 5 1 chunk +0 lines, -91 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Charlie Reis
Ok, I'm getting ready to land this again-- it was reverted because of a test ...
10 years, 2 months ago (2010-10-15 02:51:59 UTC) #1
Erik does not do reviews
I didn't have time to look at the apitest js code yet, but hopefully this ...
10 years, 2 months ago (2010-10-15 18:40:34 UTC) #2
Erik does not do reviews
http://codereview.chromium.org/3801008/diff/13032/23025 File chrome/test/data/extensions/api_test/processes/api/test.js (right): http://codereview.chromium.org/3801008/diff/13032/23025#newcode97 chrome/test/data/extensions/api_test/processes/api/test.js:97: assertEq(5, pids.length); I'm a little worried that this number ...
10 years, 2 months ago (2010-10-15 18:52:09 UTC) #3
Charlie Reis
Thanks-- those are useful comments. Can you take another look? Jay, can you confirm it's ...
10 years, 2 months ago (2010-10-15 21:59:21 UTC) #4
Erik does not do reviews
http://codereview.chromium.org/3801008/diff/13032/23002 File chrome/browser/extensions/extension_processes_api.cc (right): http://codereview.chromium.org/3801008/diff/13032/23002#newcode83 chrome/browser/extensions/extension_processes_api.cc:83: } On 2010/10/15 21:59:21, creis wrote: > On 2010/10/15 ...
10 years, 2 months ago (2010-10-16 04:25:15 UTC) #5
Charlie Reis
New CL uploaded, which should take care of reporting the process type correctly. http://codereview.chromium.org/3801008/diff/13032/23002 File ...
10 years, 2 months ago (2010-10-19 00:32:05 UTC) #6
Charlie Reis
Just pushed patch set 6 to reconcile conflicts with Matt's CL from Friday. The code ...
10 years, 2 months ago (2010-10-19 01:16:03 UTC) #7
Matt Perry
On 2010/10/19 01:16:03, creis wrote: > Just pushed patch set 6 to reconcile conflicts with ...
10 years, 2 months ago (2010-10-19 01:23:17 UTC) #8
Charlie Reis
Thanks. One more minor change to task_manager_unittest.cc uploaded to fix a compile error in unit_tests.
10 years, 2 months ago (2010-10-19 01:37:50 UTC) #9
Jay Civelli
> Jay, can you confirm it's a good idea to change these DCHECKs to CHECKs ...
10 years, 2 months ago (2010-10-19 17:24:13 UTC) #10
Erik does not do reviews
LGTM http://codereview.chromium.org/3801008/diff/60002/65002 File chrome/browser/extensions/extension_event_router.cc (right): http://codereview.chromium.org/3801008/diff/60002/65002#newcode70 chrome/browser/extensions/extension_event_router.cc:70: if (event_name.compare(extension_processes_api_constants::kOnUpdated) == 0) { nit: remove {} ...
10 years, 2 months ago (2010-10-19 18:30:17 UTC) #11
Charlie Reis
Thanks! Issues fixed. http://codereview.chromium.org/3801008/diff/60002/65002 File chrome/browser/extensions/extension_event_router.cc (right): http://codereview.chromium.org/3801008/diff/60002/65002#newcode70 chrome/browser/extensions/extension_event_router.cc:70: if (event_name.compare(extension_processes_api_constants::kOnUpdated) == 0) { On ...
10 years, 2 months ago (2010-10-19 19:09:22 UTC) #12
Erik does not do reviews
10 years, 2 months ago (2010-10-19 21:27:50 UTC) #13
LGTM!

Powered by Google App Engine
This is Rietveld 408576698