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

Issue 7314020: Update UMA user actions parsing, primarily to include WebUI metrics. (Closed)

Created:
9 years, 5 months ago by Ilya Sherman
Modified:
9 years, 4 months ago
CC:
chromium-reviews, GeorgeY, tfarina, jam, joi+watch-content_chromium.org, arv (Not doing code reviews), pam+watch_chromium.org, dhollowa, ian fette
Visibility:
Public.

Description

Update UMA user actions parsing, primarily to include WebUI metrics. * Update extract_actions.py to scan for metrics specified in the WebUI code. A common pattern is <input pref="blah" metric="Options_Blah" type="checkbox">. * Clean up almost all of the existing warnings thrown by extract_actions.py. There is one remaining use of RecordComputedAction that is a bit too subtle for me to lump into this patch. * Add a new warning to extract_actions.py that scans for uses of UserMetricsAction with a non-literal string. Any such uses are going to be missed by the script, and hence should use RecordComputedAction instead. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95925

Patch Set 1 #

Patch Set 2 : Remove cruft #

Patch Set 3 : Fix compile #

Total comments: 8

Patch Set 4 : Style cleanup #

Total comments: 2

Patch Set 5 : Update regex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -176 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/pdf_unsupported_feature.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/gpu_internals.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/advanced_options.html View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/advanced_options.js View 1 2 3 4 2 chunks +0 lines, -31 lines 0 comments Download
M chrome/browser/resources/options/autofill_options.html View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/import_data_overlay.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/search_page.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 1 chunk +5 lines, -12 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/advanced_options_handler.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/advanced_options_handler.cc View 1 2 3 4 11 chunks +12 lines, -79 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/personal_options_handler.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/tools/chromeactions.txt View 1 2 3 4 4 chunks +22 lines, -0 lines 0 comments Download
M chrome/tools/extract_actions.py View 1 2 3 4 5 chunks +99 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Ilya Sherman
James, please take a look at the WebUI changes. Evan, please take a look at ...
9 years, 5 months ago (2011-07-07 08:07:28 UTC) #1
James Hawkins
http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc File chrome/browser/pdf_unsupported_feature.cc (left): http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc#oldcode352 chrome/browser/pdf_unsupported_feature.cc:352: UserMetrics::RecordAction(UserMetricsAction(reader_installed_ ? What's wrong with this version? http://codereview.chromium.org/7314020/diff/5001/chrome/browser/resources/options/autofill_options.html File ...
9 years, 5 months ago (2011-07-07 16:30:50 UTC) #2
Evan Martin
Can you make the change description describe what you're trying to do? It's hard to ...
9 years, 5 months ago (2011-07-07 16:41:28 UTC) #3
Ilya Sherman
On 2011/07/07 16:41:28, Evan Martin wrote: > Can you make the change description describe what ...
9 years, 5 months ago (2011-07-07 18:56:52 UTC) #4
Ilya Sherman
http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc File chrome/browser/pdf_unsupported_feature.cc (left): http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc#oldcode352 chrome/browser/pdf_unsupported_feature.cc:352: UserMetrics::RecordAction(UserMetricsAction(reader_installed_ ? On 2011/07/07 16:30:50, James Hawkins wrote: > ...
9 years, 5 months ago (2011-07-07 18:59:43 UTC) #5
James Hawkins
http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc File chrome/browser/pdf_unsupported_feature.cc (left): http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc#oldcode352 chrome/browser/pdf_unsupported_feature.cc:352: UserMetrics::RecordAction(UserMetricsAction(reader_installed_ ? On 2011/07/07 18:59:44, Ilya Sherman wrote: > ...
9 years, 5 months ago (2011-07-07 20:44:19 UTC) #6
Ilya Sherman
http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc File chrome/browser/pdf_unsupported_feature.cc (left): http://codereview.chromium.org/7314020/diff/5001/chrome/browser/pdf_unsupported_feature.cc#oldcode352 chrome/browser/pdf_unsupported_feature.cc:352: UserMetrics::RecordAction(UserMetricsAction(reader_installed_ ? On 2011/07/07 20:44:19, James Hawkins wrote: > ...
9 years, 5 months ago (2011-07-07 21:01:01 UTC) #7
James Hawkins
http://codereview.chromium.org/7314020/diff/5001/chrome/tools/extract_actions.py File chrome/tools/extract_actions.py (right): http://codereview.chromium.org/7314020/diff/5001/chrome/tools/extract_actions.py#newcode279 chrome/tools/extract_actions.py:279: is_boolean = True On 2011/07/07 21:01:01, Ilya Sherman wrote: ...
9 years, 5 months ago (2011-07-07 21:10:08 UTC) #8
Ilya Sherman
Evan, I've updated the CL's description. Please take a look at the changes.
9 years, 5 months ago (2011-07-11 22:18:18 UTC) #9
Evan Martin
Jim is the metrics expert, sorry for not putting him on here earlier. I just ...
9 years, 5 months ago (2011-07-11 22:21:26 UTC) #10
Ilya Sherman
On 2011/07/11 22:21:26, Evan Martin wrote: > Jim is the metrics expert, sorry for not ...
9 years, 5 months ago (2011-07-11 22:29:02 UTC) #11
Ilya Sherman
Jim, please take a look at this change when you have a chance. Thanks :)
9 years, 5 months ago (2011-07-20 03:43:11 UTC) #12
Ilya Sherman
Jim: ping
9 years, 4 months ago (2011-07-29 04:37:19 UTC) #13
jar (doing other things)
LGTM... please see comment below. I've added Ian Fette to the CC list, since he's ...
9 years, 4 months ago (2011-08-01 17:26:44 UTC) #14
James Hawkins
WebUI LGTM
9 years, 4 months ago (2011-08-01 19:00:25 UTC) #15
Ilya Sherman
http://codereview.chromium.org/7314020/diff/7002/chrome/tools/extract_actions.py File chrome/tools/extract_actions.py (right): http://codereview.chromium.org/7314020/diff/7002/chrome/tools/extract_actions.py#newcode229 chrome/tools/extract_actions.py:229: malformed_action_re = re.compile(r'[^a-zA-Z]UserMetricsAction\([^"]') On 2011/08/01 17:26:45, jar wrote: > ...
9 years, 4 months ago (2011-08-06 03:23:51 UTC) #16
Ilya Sherman
Scott, could you take a glance at the content/browser/ change?
9 years, 4 months ago (2011-08-08 20:03:17 UTC) #17
sky
9 years, 4 months ago (2011-08-08 21:26:29 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld 408576698