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

Issue 866163002: Allow use of metrics url override outside of Chromecast (Closed)

Created:
5 years, 11 months ago by davileen
Modified:
5 years, 10 months ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, jam, darin-cc_chromium.org, gfhuang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow use of metrics url override outside of Chromecast This commit adds a command line flag kOverrideMetricsUploadUrl to allow the metrics endpoint url to be changed from the default kServerUrl value. Currently only Chromecast is able to utilize this flag. It adds a test to ensure that the override url is correctly called when specified. This commit also updates the AUTHORS file to wildcard include Amazon contributors. BUG=451177

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -36 lines) Patch
M AUTHORS View 6 chunks +1 line, -6 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chromecast/common/chromecast_switches.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chromecast/common/chromecast_switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/components_tests.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics/metrics_service.cc View 3 chunks +11 lines, -1 line 0 comments Download
M components/metrics/metrics_service_unittest.cc View 6 chunks +87 lines, -19 lines 0 comments Download
M components/metrics/metrics_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics/metrics_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A components/metrics/mock_metrics_service_client.h View 1 chunk +68 lines, -0 lines 0 comments Download
A components/metrics/mock_metrics_service_client.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
davileen
Hi all, PTAL at this proposed fix for https://code.google.com/p/chromium/issues/detail?id=451177 asvitkine: changes to components/metrics (and also ...
5 years, 11 months ago (2015-01-22 22:09:12 UTC) #2
gunsch
-damienv@ (already have lcwu1) +gfhuang to CC
5 years, 11 months ago (2015-01-22 22:39:09 UTC) #5
Alexei Svitkine (slow)
We didn't want to make this at the component level, because this will make it ...
5 years, 11 months ago (2015-01-23 19:05:42 UTC) #6
davileen
On 2015/01/23 19:05:42, Alexei Svitkine wrote: > We didn't want to make this at the ...
5 years, 11 months ago (2015-01-23 20:13:11 UTC) #7
Alexei Svitkine (slow)
You probably will have to get more buy-in than just me, but having url_constants.cc sounds ...
5 years, 11 months ago (2015-01-23 22:49:33 UTC) #8
davileen
On 2015/01/23 22:49:33, Alexei Svitkine wrote: > You probably will have to get more buy-in ...
5 years, 10 months ago (2015-01-26 20:22:54 UTC) #9
Alexei Svitkine (slow)
I'm not convinced there is a lot of value from it, since someone compiling a ...
5 years, 10 months ago (2015-01-26 20:38:04 UTC) #10
davileen
On 2015/01/26 20:38:04, Alexei Svitkine wrote: > I'm not convinced there is a lot of ...
5 years, 10 months ago (2015-01-26 21:37:08 UTC) #11
Alexei Svitkine (slow)
Getting feedback from the relevant code owners (i.e. people who will be reviewing your CL ...
5 years, 10 months ago (2015-01-26 21:54:15 UTC) #12
ivansham
5 years, 10 months ago (2015-01-31 18:59:09 UTC) #13
Message was sent while issue was closed.
On 2015/01/26 21:54:15, Alexei Svitkine wrote:
> Getting feedback from the relevant code owners (i.e. people who will be
> reviewing your CL and whose code you're changing) early is key. Maybe file
> a crbug describing the use case and cc'ing those people as early as
> possible.
> 
> On Mon, Jan 26, 2015 at 4:37 PM, <
> mailto:reply@chromiumcodereview-hr.appspotmail.com> wrote:
> 
> > On 2015/01/26 20:38:04, Alexei Svitkine wrote:
> >
> >> I'm not convinced there is a lot of value from it, since someone compiling
> >> a debug build will already be able to easily change the code.
> >>
> >
> >  Also, it would create extra complexity because I think the chromecast code
> >> wants to have this flag available even in release builds, which we don't
> >> want in desktop Chrome.
> >>
> >
> >  On Mon, Jan 26, 2015 at 3:22 PM, <
> >> mailto:reply@chromiumcodereview-hr.appspotmail.com> wrote:
> >>
> >
> >  > On 2015/01/23 22:49:33, Alexei Svitkine wrote:
> >> >
> >> >> You probably will have to get more buy-in than just me, but having
> >> >> url_constants.cc sounds good to me.
> >> >>
> >> >
> >> >  However, to make that work, you will need to modify the various
> >> components
> >> >> that have hardcoded URLs to accept them as parameters. As
> >> url_constants.cc
> >> >> will live in chrome/ while components/ can't depend on chrome/. So
> >> you'd
> >> >> need to add constructor params or client interfaces to provide these
> >> URLs
> >> >> to the components from the chrome/ layer (which can pass in the url
> >> >> constants) - so it would be an involved undertaking. But it seems like
> >> a
> >> >> reasonable one to me. If the intention for components/ to be re-usable,
> >> >> then it makes sense for their endpoint URLs to be configurable.
> >> >>
> >> >
> >> >  On Fri, Jan 23, 2015 at 3:13 PM, <
> >> >> mailto:reply@chromiumcodereview-hr.appspotmail.com> wrote:
> >> >>
> >> >
> >> >  > On 2015/01/23 19:05:42, Alexei Svitkine wrote:
> >> >> >
> >> >> >> We didn't want to make this at the component level, because this
> >> will
> >> >> >> make it
> >> >> >> easier for bad actors to disable UMA for desktop Chrome.
> >> >> >>
> >> >> >
> >> >> >  Also, I'm curious about the motivation of this change. Presumably,
> >> >> you're
> >> >> >> building your own browser based on Chromium source code. If so, it
> >> >> seems
> >> >> >>
> >> >> > strange
> >> >> >
> >> >> >> that you'd want your metrics reporting system to be set by a
> >> >> command-line
> >> >> >>
> >> >> > flag,
> >> >> >
> >> >> >> rather than done by the code directly.
> >> >> >>
> >> >> >
> >> >> > Hi Alexei,
> >> >> >
> >> >> > Thanks for the insight! We do want to collect metrics on our browser
> >> >> > using our own endpoint, though your concern makes sense. Perhaps
> >> >> > we can find another way instead of a command line argument? For this
> >> >> > CL do you think it is worth putting it behind a DEBUG compile flag?
> >> >> > It certainly helped me being able to point it at different localhost
> >> >> > endpoints.
> >> >> >
> >> >> > Do you have any thoughts on making this configurable, perhaps
> >> >> > at compile time? We could potentially maintain a patch internally
> >> >> > that has the necessary change, but of course that would be our
> >> >> > least preferred option.
> >> >> >
> >> >> > One thing we were considering was extracting URL constants like
> >> >> > kServerUrl into url_constants.cc files, which can be replaced
> >> trivially
> >> >> > via GYP. There already seems to be somewhat of a
> >> >> > precedent in the codebase for it. It would be a large refactor,
> >> >> > but we would be willing to do the work. Any thoughts?
> >> >> >
> >> >> > Thanks,
> >> >> > David.
> >> >> >
> >> >> > https://codereview.chromium.org/866163002/
> >> >> >
> >> >>
> >> >
> >> >  To unsubscribe from this group and stop receiving emails from it, send
> >> an
> >> >>
> >> > email
> >> >
> >> >> to mailto:chromium-reviews+unsubscribe@chromium.org.
> >> >>
> >> >
> >> > That's good to hear Alexi. We'll have a CL for the url_constants.cc
> >> > approach out
> >> > soon.
> >> >
> >> > For this CL do you think there is value having the flag behind a DEBUG
> >> so
> >> > it
> >> > won't make it into
> >> > release builds?
> >> >
> >> > https://codereview.chromium.org/866163002/
> >> >
> >>
> >
> >  To unsubscribe from this group and stop receiving emails from it, send an
> >>
> > email
> >
> >> to mailto:chromium-reviews+unsubscribe@chromium.org.
> >>
> >
> > Thanks Alexi.
> >
> > The chromecast usage of this flag really threw me but I agree with your
> > responses. I'll close this CL.
> >
> > Do you have any suggestions for the future on how I could get valuable
> > feedback
> > like this sooner rather than later?
> >
> > David.
> >
> > https://codereview.chromium.org/866163002/
> >
> 
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Cr for the proposed url constant change
https://codereview.chromium.org/886173002/

Powered by Google App Engine
This is Rietveld 408576698