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

Issue 2790723004: Function to count dialog box creations. (Closed)

Created:
3 years, 8 months ago by pdyson
Modified:
3 years, 8 months ago
Reviewers:
hajimehoshi, msw, jwd, tapted
CC:
asvitkine+watch_chromium.org, chromium-reviews, groby-ooo-7-16, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Function to count dialog box creations. Create a function to count dialog box creations and use it to log translate. Future CLs will add this logging to other dialog boxes. BUG=705331 Review-Url: https://codereview.chromium.org/2790723004 Cr-Commit-Position: refs/heads/master@{#462260} Committed: https://chromium.googlesource.com/chromium/src/+/7872d6c00ef5493bb8abdbf5c33a62d82d2fde45

Patch Set 1 #

Patch Set 2 : Use function instead of class for logging. #

Total comments: 8

Patch Set 3 : Address comments. #

Patch Set 4 : Change location of files in BUILD.gn #

Total comments: 2

Patch Set 5 : format #

Total comments: 3

Patch Set 6 : Move function to browser_dialogs.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/ui/browser_dialogs.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (26 generated)
pdyson
3 years, 8 months ago (2017-04-03 05:56:20 UTC) #3
tapted
https://codereview.chromium.org/2790723004/diff/20001/chrome/browser/ui/views/dialog_uma/dialog_uma.cc File chrome/browser/ui/views/dialog_uma/dialog_uma.cc (right): https://codereview.chromium.org/2790723004/diff/20001/chrome/browser/ui/views/dialog_uma/dialog_uma.cc#newcode10 chrome/browser/ui/views/dialog_uma/dialog_uma.cc:10: UMA_HISTOGRAM_SPARSE_SLOWLY("Dialog.Creation", identifier); I'm not really a UMA expert, but ...
3 years, 8 months ago (2017-04-03 09:31:30 UTC) #4
jwd
LGTM with tapted@'s comments. https://codereview.chromium.org/2790723004/diff/20001/chrome/browser/ui/views/dialog_uma/dialog_uma.cc File chrome/browser/ui/views/dialog_uma/dialog_uma.cc (right): https://codereview.chromium.org/2790723004/diff/20001/chrome/browser/ui/views/dialog_uma/dialog_uma.cc#newcode10 chrome/browser/ui/views/dialog_uma/dialog_uma.cc:10: UMA_HISTOGRAM_SPARSE_SLOWLY("Dialog.Creation", identifier); On 2017/04/03 09:31:30, ...
3 years, 8 months ago (2017-04-03 23:02:04 UTC) #5
pdyson
Addressed comments. https://codereview.chromium.org/2790723004/diff/20001/chrome/browser/ui/views/dialog_uma/dialog_uma.cc File chrome/browser/ui/views/dialog_uma/dialog_uma.cc (right): https://codereview.chromium.org/2790723004/diff/20001/chrome/browser/ui/views/dialog_uma/dialog_uma.cc#newcode10 chrome/browser/ui/views/dialog_uma/dialog_uma.cc:10: UMA_HISTOGRAM_SPARSE_SLOWLY("Dialog.Creation", identifier); On 2017/04/03 at 23:02:04, jwd ...
3 years, 8 months ago (2017-04-04 00:54:44 UTC) #6
tapted
Don't forget to upload a new CL :) (also running `git cl try` is a ...
3 years, 8 months ago (2017-04-04 01:11:59 UTC) #7
pdyson
On 2017/04/04 at 01:11:59, tapted wrote: > Don't forget to upload a new CL :) ...
3 years, 8 months ago (2017-04-04 04:10:33 UTC) #15
tapted
lgtm with the following https://codereview.chromium.org/2790723004/diff/60001/chrome/browser/ui/views/dialog_uma/dialog_uma.h File chrome/browser/ui/views/dialog_uma/dialog_uma.h (right): https://codereview.chromium.org/2790723004/diff/60001/chrome/browser/ui/views/dialog_uma/dialog_uma.h#newcode15 chrome/browser/ui/views/dialog_uma/dialog_uma.h:15: MAX_VALUE = 2, This should ...
3 years, 8 months ago (2017-04-04 04:18:06 UTC) #16
pdyson
https://codereview.chromium.org/2790723004/diff/60001/chrome/browser/ui/views/dialog_uma/dialog_uma.h File chrome/browser/ui/views/dialog_uma/dialog_uma.h (right): https://codereview.chromium.org/2790723004/diff/60001/chrome/browser/ui/views/dialog_uma/dialog_uma.h#newcode15 chrome/browser/ui/views/dialog_uma/dialog_uma.h:15: MAX_VALUE = 2, On 2017/04/04 at 04:18:06, tapted wrote: ...
3 years, 8 months ago (2017-04-04 04:29:53 UTC) #17
pdyson
3 years, 8 months ago (2017-04-04 05:22:48 UTC) #21
hajimehoshi
translate lgtm
3 years, 8 months ago (2017-04-04 05:27:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2790723004/80001
3 years, 8 months ago (2017-04-04 23:52:36 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/402552)
3 years, 8 months ago (2017-04-05 00:05:23 UTC) #29
pdyson
On 2017/04/05 at 00:05:23, commit-bot wrote: > Try jobs failed on following builders: > chromium_presubmit ...
3 years, 8 months ago (2017-04-05 00:15:32 UTC) #31
msw
https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h File chrome/browser/ui/views/dialog_uma/dialog_uma.h (right): https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h#newcode5 chrome/browser/ui/views/dialog_uma/dialog_uma.h:5: #ifndef CHROME_BROWSER_UI_VIEWS_DIALOG_UMA_DIALOG_UMA_H_ A couple questions: (1) Why is this ...
3 years, 8 months ago (2017-04-05 00:26:54 UTC) #32
pdyson
https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h File chrome/browser/ui/views/dialog_uma/dialog_uma.h (right): https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h#newcode5 chrome/browser/ui/views/dialog_uma/dialog_uma.h:5: #ifndef CHROME_BROWSER_UI_VIEWS_DIALOG_UMA_DIALOG_UMA_H_ On 2017/04/05 at 00:26:54, msw wrote: > ...
3 years, 8 months ago (2017-04-05 03:43:25 UTC) #33
msw
https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h File chrome/browser/ui/views/dialog_uma/dialog_uma.h (right): https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h#newcode5 chrome/browser/ui/views/dialog_uma/dialog_uma.h:5: #ifndef CHROME_BROWSER_UI_VIEWS_DIALOG_UMA_DIALOG_UMA_H_ On 2017/04/05 03:43:24, pdyson wrote: > On ...
3 years, 8 months ago (2017-04-05 04:32:12 UTC) #34
pdyson
On 2017/04/05 at 04:32:12, msw wrote: > https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h > File chrome/browser/ui/views/dialog_uma/dialog_uma.h (right): > > https://codereview.chromium.org/2790723004/diff/80001/chrome/browser/ui/views/dialog_uma/dialog_uma.h#newcode5 ...
3 years, 8 months ago (2017-04-05 05:13:26 UTC) #35
msw
lgtm, thanks
3 years, 8 months ago (2017-04-05 06:55:16 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2790723004/100001
3 years, 8 months ago (2017-04-05 23:05:19 UTC) #43
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 23:13:34 UTC) #46
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/7872d6c00ef5493bb8abdbf5c33a...

Powered by Google App Engine
This is Rietveld 408576698