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

Issue 8510046: Removing extension name suffix from the metric name in chrome.experimental.metrics (Closed)

Created:
9 years, 1 month ago by Vladislav Kaznacheev
Modified:
9 years, 1 month ago
CC:
jar (doing other things), chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Removing extension name suffix from the metric name in chrome.experimental.metrics Also removed an obsolete comment. Rationale: 1. Extension name postfixes make action names less readable than they need to be. 2. There are not so many extensions using the API. To be precise, at the moment there is exactly one (Chrome OS built-in File Browser). 3. Every new metric needs to be registered in a dashboard configuration file anyway. Names are sorted alphabetically there and duplicates can be easily detected. At the very least we could omit the extension name postfix only for built-in extensions. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110295

Patch Set 1 #

Patch Set 2 : Skip the name only for component extensions #

Patch Set 3 : Removing obsolete comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M chrome/browser/extensions/extension_metrics_module.cc View 1 2 1 chunk +9 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Vladislav Kaznacheev
9 years, 1 month ago (2011-11-15 11:35:06 UTC) #1
Roger Tawa OOO till Jul 10th
The extension id suffix is a security/usability feature to prevent one extension from overwriting metrics ...
9 years, 1 month ago (2011-11-15 12:52:29 UTC) #2
Vladislav Kaznacheev
You are right, I forgot about the possibility of overwriting Chrome metrics. I think this ...
9 years, 1 month ago (2011-11-15 14:06:25 UTC) #3
jar (doing other things)
IMO, such an API should be private. If you make it public, then it is ...
9 years, 1 month ago (2011-11-15 17:25:21 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm What does a private api mean exactly? That only certain extensions can use it, ...
9 years, 1 month ago (2011-11-15 18:03:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaznacheev@chromium.org/8510046/6001
9 years, 1 month ago (2011-11-16 10:29:02 UTC) #6
Vladislav Kaznacheev
Thanks for the review. I am committing this (with the obsolete comment removed). I will ...
9 years, 1 month ago (2011-11-16 10:32:27 UTC) #7
commit-bot: I haz the power
Change committed as 110295
9 years, 1 month ago (2011-11-16 13:07:13 UTC) #8
Ilya Sherman
9 years, 1 month ago (2011-11-16 21:25:01 UTC) #9
On 2011/11/15 18:03:24, Roger Tawa wrote:
> lgtm
> 
> What does a private api mean exactly?  That only certain extensions can use
it,
> or that its simply not documented, but still callable by any extension?

In this case, I would expect the metrics logging methods to only do something
for whitelisted extensions, whose authors have access to the collected metrics
data.  It sounds like currently, that whitelist could be defined simply as
"component extensions".  Does that sound reasonable?

Powered by Google App Engine
This is Rietveld 408576698