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

Issue 657037: Add a metrics extensions API.... (Closed)

Created:
10 years, 10 months ago by Roger Tawa OOO till Jul 10th
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw+cc_chromium.org, ben+cc_chromium.org, amit, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, Erik does not do reviews
Visibility:
Public.

Description

Add a metrics extensions API. See http://docs.google.com/View?id=dd4ngnpz_0dpsb8n96 for API proposal. BUG=0 TEST=See unit tests as part of this CL Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40130

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+581 lines, -2 lines) Patch
M chrome/browser/extensions/extension_apitest.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_metrics_apitest.cc View 1 1 chunk +152 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_metrics_module.h View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_metrics_module.cc View 1 2 3 1 chunk +153 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_extension_bindings.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/metrics/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/metrics/test.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/metrics/test.js View 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/test/test_launcher/out_of_proc_test_runner.cc View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M chrome_frame/chrome_launcher.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Roger Tawa OOO till Jul 10th
10 years, 10 months ago (2010-02-24 00:42:07 UTC) #1
Jói
Cool stuff, tiny drive-by: http://codereview.chromium.org/657037/diff/1/15 File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/657037/diff/1/15#newcode208 chrome/common/chrome_switches.cc:208: const char kEnableMetricsExtensionApis[] = "enable-metrics-extension-apis"; ...
10 years, 10 months ago (2010-02-24 03:28:49 UTC) #2
(NOT FOR CODE REVIEWS)
Hi Joi, Done as is for consistency with kEnableExperimentalExtensionApis above :-) Thanks, Roger - On ...
10 years, 10 months ago (2010-02-24 04:20:24 UTC) #3
Jói
kEnableExperimentalExtensionApis enables all chrome.experimental.* APIs if I understand correctly, whereas your flag enables only one ...
10 years, 10 months ago (2010-02-24 21:58:01 UTC) #4
Erik does not do reviews
For the record, I agree with Joi. It's a minor point though. Erik 2010/2/24 Jói ...
10 years, 10 months ago (2010-02-24 22:10:01 UTC) #5
(NOT FOR CODE REVIEWS)
Hi guys, OK, I'll change that. Aaron, Evan: after tomorrow, I'm away until March 9th. ...
10 years, 10 months ago (2010-02-25 13:13:00 UTC) #6
Evan Martin
metrics bits seem fine to me http://codereview.chromium.org/657037/diff/1/9 File chrome/browser/extensions/extension_metrics_module.cc (right): http://codereview.chromium.org/657037/diff/1/9#newcode27 chrome/browser/extensions/extension_metrics_module.cc:27: // enable-metrics-extension-apis command ...
10 years, 10 months ago (2010-02-25 13:58:12 UTC) #7
Roger Tawa OOO till Jul 10th
Thanks Erik, Evan, Joi. Comments addressed, fixed build error found by trybots, changes uploaded. http://codereview.chromium.org/657037/diff/1/9 ...
10 years, 10 months ago (2010-02-25 15:27:27 UTC) #8
Aaron Boodman
Easy peasy. http://codereview.chromium.org/657037/diff/3002/3017 File chrome/renderer/resources/extension_process_bindings.js (right): http://codereview.chromium.org/657037/diff/3002/3017#newcode552 chrome/renderer/resources/extension_process_bindings.js:552: apiFunctions["metrics.recordPercentage"].handleRequest = function(name, I think we want ...
10 years, 10 months ago (2010-02-25 21:20:07 UTC) #9
Aaron Boodman
This looks fine to me structurally, and since it is behind a flag, I don't ...
10 years, 10 months ago (2010-02-25 21:22:15 UTC) #10
Roger Tawa OOO till Jul 10th
Hi Arron, Evan reviewed from a metrics points of view, I just wanted you to ...
10 years, 10 months ago (2010-02-25 21:32:36 UTC) #11
Roger Tawa OOO till Jul 10th
Hi guys, Aaron thought it was better to implement all the helper functions as C++ ...
10 years, 10 months ago (2010-02-26 02:09:55 UTC) #12
Jói
LGTM
10 years, 10 months ago (2010-02-26 12:52:04 UTC) #13
Roger Tawa OOO till Jul 10th
Hi all, I realized that this change was the source of the failure of browser_tests ...
10 years, 10 months ago (2010-02-26 17:47:16 UTC) #14
Roger Tawa OOO till Jul 10th
10 years, 10 months ago (2010-02-26 17:58:27 UTC) #15
For completeness, replying to Arron's comment.

http://codereview.chromium.org/657037/diff/3002/3017
File chrome/renderer/resources/extension_process_bindings.js (right):

http://codereview.chromium.org/657037/diff/3002/3017#newcode552
chrome/renderer/resources/extension_process_bindings.js:552:
apiFunctions["metrics.recordPercentage"].handleRequest = function(name,
On 2010/02/25 21:20:08, Aaron Boodman wrote:
> I think we want to minimize custom bindings.... so I'd prefer to see three
> different API functions that just delegate to one shared C++ function, and
then
> you can eliminate this JS.

Done.

Powered by Google App Engine
This is Rietveld 408576698