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

Issue 110893004: [SiteChip] Add UMA, finish wiring site chip experiment up to the omnibox. (Closed)

Created:
7 years ago by Greg Billock
Modified:
7 years ago
CC:
chromium-reviews, tfarina, Justin Donnelly, Peter Kasting, Ilya Sherman
Visibility:
Public.

Description

[SiteChip] Add UMA, finish wiring site chip experiment up to the omnibox. BUG=315944 R=msw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240652

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : Rebase #

Total comments: 1

Patch Set 4 : Fix layout math mistake #

Patch Set 5 : Repair bad 16x16 spacing value merge. #

Total comments: 5

Patch Set 6 : Add chromeactions.txt #

Patch Set 7 : Add background color #

Patch Set 8 : rebase #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -15 lines) Patch
M chrome/browser/ui/views/toolbar/site_chip_view.cc View 1 2 3 4 5 6 6 chunks +23 lines, -14 lines 5 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/actions/chromeactions.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Greg Billock
This finishes by hooking up some UMAs and finalizing the connection to the omnibox on ...
7 years ago (2013-12-11 00:13:12 UTC) #1
msw
https://codereview.chromium.org/110893004/diff/10001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/110893004/diff/10001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode445 chrome/browser/ui/views/toolbar/site_chip_view.cc:445: UMA_HISTOGRAM_COUNTS("SiteChip.Pressed", 1); What are you trying to record? This ...
7 years ago (2013-12-12 00:17:48 UTC) #2
msw
https://codereview.chromium.org/110893004/diff/10001/chrome/browser/ui/omnibox/omnibox_view.h File chrome/browser/ui/omnibox/omnibox_view.h (right): https://codereview.chromium.org/110893004/diff/10001/chrome/browser/ui/omnibox/omnibox_view.h#newcode252 chrome/browser/ui/omnibox/omnibox_view.h:252: void ShowURL(); Also, make sure you update the definition ...
7 years ago (2013-12-12 00:22:19 UTC) #3
Greg Billock
https://codereview.chromium.org/110893004/diff/30001/chrome/browser/ui/omnibox/omnibox_view.h File chrome/browser/ui/omnibox/omnibox_view.h (right): https://codereview.chromium.org/110893004/diff/30001/chrome/browser/ui/omnibox/omnibox_view.h#newcode252 chrome/browser/ui/omnibox/omnibox_view.h:252: void ShowURL(); Note: this replicates Justin's change. That's in ...
7 years ago (2013-12-12 19:02:31 UTC) #4
msw
Please address my other comments.
7 years ago (2013-12-12 20:28:58 UTC) #5
Greg Billock
https://codereview.chromium.org/110893004/diff/10001/chrome/browser/ui/omnibox/omnibox_view.h File chrome/browser/ui/omnibox/omnibox_view.h (right): https://codereview.chromium.org/110893004/diff/10001/chrome/browser/ui/omnibox/omnibox_view.h#newcode252 chrome/browser/ui/omnibox/omnibox_view.h:252: void ShowURL(); On 2013/12/12 00:22:20, msw wrote: > Also, ...
7 years ago (2013-12-12 20:36:37 UTC) #6
Greg Billock
On 2013/12/12 20:28:58, msw wrote: > Please address my other comments. done (was working separately ...
7 years ago (2013-12-12 20:37:01 UTC) #7
msw
https://codereview.chromium.org/110893004/diff/70001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/110893004/diff/70001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode445 chrome/browser/ui/views/toolbar/site_chip_view.cc:445: UMA_HISTOGRAM_COUNTS("SiteChip.Pressed", 1); Is this worthwhile if you'll have the ...
7 years ago (2013-12-12 21:09:54 UTC) #8
Greg Billock
+Mark. Can you take a look and see if this looks like a good set ...
7 years ago (2013-12-12 21:55:31 UTC) #9
msw
LGTM modulo Mark's comments regarding the necessity of both metrics.
7 years ago (2013-12-12 22:12:22 UTC) #10
Mark P
I can foresee the UserAction as being useful. As for the histogram, msw@ is strictly ...
7 years ago (2013-12-12 22:36:08 UTC) #11
Greg Billock
On 2013/12/12 22:36:08, Mark P wrote: > I can foresee the UserAction as being useful. ...
7 years ago (2013-12-12 22:51:38 UTC) #12
msw
LGTM!
7 years ago (2013-12-12 22:57:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/110893004/110001
7 years ago (2013-12-12 23:08:52 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=203023
7 years ago (2013-12-13 01:08:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/110893004/110001
7 years ago (2013-12-13 06:04:29 UTC) #16
Justin Donnelly
The failure looked like bot flakiness to me. I put this back in the CQ.
7 years ago (2013-12-13 06:04:53 UTC) #17
Greg Billock
On 2013/12/13 06:04:53, Justin Donnelly wrote: > The failure looked like bot flakiness to me. ...
7 years ago (2013-12-13 06:37:58 UTC) #18
commit-bot: I haz the power
Failed to apply patch for tools/metrics/actions/chromeactions.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-12-13 13:55:02 UTC) #19
Greg Billock
Committed patchset #8 manually as r240652 (presubmit successful).
7 years ago (2013-12-13 15:05:37 UTC) #20
Peter Kasting
Post-vacation comments: https://codereview.chromium.org/110893004/diff/130001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/110893004/diff/130001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode113 chrome/browser/ui/views/toolbar/site_chip_view.cc:113: const SkColor kBrokenSSLBackgroundColor = SkColorSetRGB(253, 196, 36); ...
7 years ago (2013-12-18 00:33:34 UTC) #21
Greg Billock
https://codereview.chromium.org/110893004/diff/130001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/110893004/diff/130001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode113 chrome/browser/ui/views/toolbar/site_chip_view.cc:113: const SkColor kBrokenSSLBackgroundColor = SkColorSetRGB(253, 196, 36); On 2013/12/18 ...
7 years ago (2013-12-18 16:43:06 UTC) #22
Peter Kasting
7 years ago (2013-12-18 21:30:58 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/110893004/diff/130001/chrome/browser/ui/views...
File chrome/browser/ui/views/toolbar/site_chip_view.cc (right):

https://codereview.chromium.org/110893004/diff/130001/chrome/browser/ui/views...
chrome/browser/ui/views/toolbar/site_chip_view.cc:113: const SkColor
kBrokenSSLBackgroundColor = SkColorSetRGB(253, 196, 36);
On 2013/12/18 16:43:07, Greg Billock wrote:
> On 2013/12/18 00:33:35, Peter Kasting wrote:
> > Do we want these colors on every possible toolbar background color?  (For
> > reference, the bubble colors in the omnibox are semitransparent; you could
> copy
> > the colors + alpha values from those.)
> 
> That's a good question. The images have a bit of transparency, so I could be
> using SetRGBA here. I wasn't sure how that would interact with the label
> background and picking the high-contrast color, is why I didn't use it.

I think rather than hardcode these values (which makes for subtle maintenance
issues if we change the images, since we won't automatically notice these are
out of date), you should look in the code for e.g. the EV bubble and find how it
samples the correct color from the image grid and then blends it against the
background.  Then the code below should do that and these constants can
disappear entirely.

Powered by Google App Engine
This is Rietveld 408576698