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

Issue 10175008: Improving the process model extension API (Closed)

Created:
8 years, 8 months ago by nasko
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, yoshiki+watch_chromium.org, mihaip+watch_chromium.org
Visibility:
Public.

Description

Improving the process model extension API BUG=32302 TEST=Unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137690

Patch Set 1 : #

Total comments: 50

Patch Set 2 : Feedback fixes and restoring missing tabs functionality. #

Patch Set 3 : Feedback fixes, tabs code restored, merged with changes for TM #

Patch Set 4 : Moved to async extension functions and generated docs. #

Total comments: 47

Patch Set 5 : Review feedback incorporated. #

Total comments: 2

Patch Set 6 : Moved common functionality to ExtensionTabUtil and more feedback fixes. #

Total comments: 17

Patch Set 7 : Added histogram, removed redundant code. #

Patch Set 8 : Improved task manager sample and minor cleanup. #

Total comments: 16

Patch Set 9 : Schema file synced with docs, some minor cleanup. #

Total comments: 13

Patch Set 10 : Addressing feedback by Matt. #

Total comments: 2

Patch Set 11 : Moved utility function into namepsace instead of class. #

Total comments: 2

Patch Set 12 : Removed state variable from task manager. #

Patch Set 13 : Syncing to the latest tree after a week away. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2903 lines, -181 lines) Patch
M chrome/browser/extensions/extension_event_router.cc View 1 2 3 4 5 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_function_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_function_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api.h View 1 2 3 4 5 6 7 8 9 3 chunks +107 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +657 lines, -89 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api_constants.h View 1 2 3 4 2 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_processes_api_constants.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +7 lines, -26 lines 0 comments Download
M chrome/browser/task_manager/task_manager.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +59 lines, -13 lines 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental_processes.json View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +187 lines, -8 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/processes/process_monitor.zip View 1 2 3 4 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js View 1 2 3 4 5 6 7 2 chunks +52 lines, -19 lines 0 comments Download
A chrome/common/extensions/docs/experimental.processes.html View 1 2 3 4 1 chunk +1463 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.html View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +18 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/processes/api/test.js View 1 2 3 4 5 6 7 8 9 6 chunks +185 lines, -9 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
nasko
Charlie, can you review the initial version of the experimental.processes API revival?
8 years, 8 months ago (2012-04-23 20:43:23 UTC) #1
Charlie Reis
I'm excited! These will be quite useful. https://chromiumcodereview.appspot.com/10175008/diff/3001/chrome/browser/extensions/extension_event_router.cc File chrome/browser/extensions/extension_event_router.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/3001/chrome/browser/extensions/extension_event_router.cc#newcode134 chrome/browser/extensions/extension_event_router.cc:134: // processes.onUpdated ...
8 years, 8 months ago (2012-04-23 22:19:51 UTC) #2
nasko
I've made changes based on the review. I also realized some of the code was ...
8 years, 8 months ago (2012-04-24 18:14:29 UTC) #3
nasko
I've changed the API to work differently - the task manager is no longer updating ...
8 years, 8 months ago (2012-04-27 00:06:25 UTC) #4
Charlie Reis
https://chromiumcodereview.appspot.com/10175008/diff/3001/chrome/browser/extensions/extension_processes_api.cc File chrome/browser/extensions/extension_processes_api.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/3001/chrome/browser/extensions/extension_processes_api.cc#newcode482 chrome/browser/extensions/extension_processes_api.cc:482: true); On 2012/04/24 18:14:29, nasko wrote: > On 2012/04/23 ...
8 years, 8 months ago (2012-04-27 22:01:55 UTC) #5
nasko
Updated with changes based on review feedback. https://chromiumcodereview.appspot.com/10175008/diff/54001/chrome/browser/extensions/extension_processes_api.h File chrome/browser/extensions/extension_processes_api.h (right): https://chromiumcodereview.appspot.com/10175008/diff/54001/chrome/browser/extensions/extension_processes_api.h#newcode38 chrome/browser/extensions/extension_processes_api.h:38: bool StartTaskManagerListening(); ...
8 years, 7 months ago (2012-04-30 18:05:19 UTC) #6
Charlie Reis
https://chromiumcodereview.appspot.com/10175008/diff/54001/chrome/browser/extensions/extension_processes_api.cc File chrome/browser/extensions/extension_processes_api.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/54001/chrome/browser/extensions/extension_processes_api.cc#newcode18 chrome/browser/extensions/extension_processes_api.cc:18: #include "chrome/browser/extensions/extension_service.h" On 2012/04/27 22:01:56, creis wrote: > Nit: ...
8 years, 7 months ago (2012-05-01 17:58:24 UTC) #7
nasko
Updated with the missed file and moving common functionality to ExtensionTabUtil. https://chromiumcodereview.appspot.com/10175008/diff/54001/chrome/browser/extensions/extension_processes_api.cc File chrome/browser/extensions/extension_processes_api.cc (right): ...
8 years, 7 months ago (2012-05-01 21:28:40 UTC) #8
Charlie Reis
https://chromiumcodereview.appspot.com/10175008/diff/77002/chrome/browser/extensions/browser_extension_window_controller.cc File chrome/browser/extensions/browser_extension_window_controller.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/77002/chrome/browser/extensions/browser_extension_window_controller.cc#newcode7 chrome/browser/extensions/browser_extension_window_controller.cc:7: #include "base/values.h" Unneeded? https://chromiumcodereview.appspot.com/10175008/diff/77002/chrome/browser/extensions/extension_processes_api.cc File chrome/browser/extensions/extension_processes_api.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/77002/chrome/browser/extensions/extension_processes_api.cc#newcode210 chrome/browser/extensions/extension_processes_api.cc:210: ...
8 years, 7 months ago (2012-05-02 00:23:13 UTC) #9
nasko
Added the histogram and removed the unneeded code. Also, some clarification comments to your questions. ...
8 years, 7 months ago (2012-05-02 18:14:02 UTC) #10
Charlie Reis
I think we're almost there. https://chromiumcodereview.appspot.com/10175008/diff/3001/chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js File chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js (right): https://chromiumcodereview.appspot.com/10175008/diff/3001/chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js#newcode7 chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js:7: chrome.experimental.processes.onUpdated.addListener(function(processes) { On 2012/04/27 ...
8 years, 7 months ago (2012-05-03 18:47:50 UTC) #11
nasko
The example process monitor is now much closer to the real task manager :). Fixed ...
8 years, 7 months ago (2012-05-03 23:28:04 UTC) #12
Charlie Reis
The new sample extension is great. LGTM, with the following small changes and doc cleanup. ...
8 years, 7 months ago (2012-05-04 20:41:29 UTC) #13
nasko
I've synced the schema file with the API doc and fixed the remaining issues. Adding ...
8 years, 7 months ago (2012-05-07 17:08:47 UTC) #14
Matt Perry
https://chromiumcodereview.appspot.com/10175008/diff/101002/chrome/browser/extensions/extension_processes_api.cc File chrome/browser/extensions/extension_processes_api.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/101002/chrome/browser/extensions/extension_processes_api.cc#newcode56 chrome/browser/extensions/extension_processes_api.cc:56: // Determine process type nit: end with . https://chromiumcodereview.appspot.com/10175008/diff/101002/chrome/browser/extensions/extension_processes_api.cc#newcode268 ...
8 years, 7 months ago (2012-05-07 20:33:34 UTC) #15
nasko
Fixed issues brought up by Matt. https://chromiumcodereview.appspot.com/10175008/diff/101002/chrome/browser/extensions/extension_processes_api.cc File chrome/browser/extensions/extension_processes_api.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/101002/chrome/browser/extensions/extension_processes_api.cc#newcode56 chrome/browser/extensions/extension_processes_api.cc:56: // Determine process ...
8 years, 7 months ago (2012-05-08 00:34:55 UTC) #16
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10175008/diff/101002/chrome/browser/extensions/extension_processes_api.cc File chrome/browser/extensions/extension_processes_api.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/101002/chrome/browser/extensions/extension_processes_api.cc#newcode546 chrome/browser/extensions/extension_processes_api.cc:546: DidStartTaskManagerListening(); On 2012/05/08 00:34:56, nasko wrote: > On ...
8 years, 7 months ago (2012-05-08 01:00:34 UTC) #17
nasko
The utility function is now in the extensions namespace instead of a static member of ...
8 years, 7 months ago (2012-05-08 16:39:50 UTC) #18
Matt Perry
still LGTM
8 years, 7 months ago (2012-05-08 17:40:31 UTC) #19
Nico
lgtm
8 years, 7 months ago (2012-05-08 18:15:35 UTC) #20
yoshiki
Looking at chrome/browser/task_manager/*. https://chromiumcodereview.appspot.com/10175008/diff/109002/chrome/browser/task_manager/task_manager.cc File chrome/browser/task_manager/task_manager.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/109002/chrome/browser/task_manager/task_manager.cc#newcode980 chrome/browser/task_manager/task_manager.cc:980: if (update_state_ != TASK_PENDING || !is_listening_) ...
8 years, 7 months ago (2012-05-08 19:31:06 UTC) #21
nasko
Removed the unneeded variable in task manager. https://chromiumcodereview.appspot.com/10175008/diff/109002/chrome/browser/task_manager/task_manager.cc File chrome/browser/task_manager/task_manager.cc (right): https://chromiumcodereview.appspot.com/10175008/diff/109002/chrome/browser/task_manager/task_manager.cc#newcode980 chrome/browser/task_manager/task_manager.cc:980: if (update_state_ ...
8 years, 7 months ago (2012-05-09 00:21:54 UTC) #22
yoshiki
LGTM
8 years, 7 months ago (2012-05-09 02:40:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/10175008/94030
8 years, 7 months ago (2012-05-17 15:40:42 UTC) #24
commit-bot: I haz the power
Can't apply patch for file chrome/common/extensions/api/experimental.processes.json. While running patch -p1 --forward --force; patching file chrome/common/extensions/api/experimental.processes.json ...
8 years, 7 months ago (2012-05-17 15:41:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/10175008/103005
8 years, 7 months ago (2012-05-17 16:29:02 UTC) #26
commit-bot: I haz the power
8 years, 7 months ago (2012-05-17 18:18:39 UTC) #27
Change committed as 137690

Powered by Google App Engine
This is Rietveld 408576698