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

Issue 11753014: Enable the VariationsService on official builds when --variations-service-url is provided. (Closed)

Created:
7 years, 11 months ago by SteveT
Modified:
7 years, 11 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Enable the VariationsService on official builds when --variations-service-url is provided. We do this by wrapping the default ctor in a factory Create method, which handles the build-type logic. Also, group static methods in variations_service.*. Also, move the testing constructor to protected where it's better... protected. BUG=162417 TEST=With an unofficial build: Ensure that running Chromium without a command line argument does not result in a request to the Variations server (https://clients4.google.com/chrome-variations/seed). Ensure that providing the --variations-server-url flag with a URL results in a request to that URL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175352

Patch Set 1 : init #

Total comments: 10

Patch Set 2 : asvit nits #

Total comments: 2

Patch Set 3 : update comment #

Patch Set 4 : Flip ifdef condition #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -14 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 3 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
SteveT
PTAL at this solution. I will commit after review and some manual testing, which I ...
7 years, 11 months ago (2013-01-03 20:01:07 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/11753014/diff/2001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/11753014/diff/2001/chrome/browser/metrics/variations/variations_service.cc#newcode175 chrome/browser/metrics/variations/variations_service.cc:175: #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_ANDROID) Do we have a bug ...
7 years, 11 months ago (2013-01-03 20:14:06 UTC) #2
SteveT
Back to you. https://codereview.chromium.org/11753014/diff/2001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/11753014/diff/2001/chrome/browser/metrics/variations/variations_service.cc#newcode175 chrome/browser/metrics/variations/variations_service.cc:175: #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_ANDROID) Done. https://codereview.chromium.org/11753014/diff/2001/chrome/browser/metrics/variations/variations_service.cc#newcode176 ...
7 years, 11 months ago (2013-01-03 20:35:42 UTC) #3
Alexei Svitkine (slow)
LGTM with a comment. https://codereview.chromium.org/11753014/diff/2001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/11753014/diff/2001/chrome/browser/metrics/variations/variations_service.cc#newcode176 chrome/browser/metrics/variations/variations_service.cc:176: // Unless the URL was ...
7 years, 11 months ago (2013-01-03 20:40:42 UTC) #4
SteveT
Okay, comment updated. Will do the manual testing shortly, before committing.. https://codereview.chromium.org/11753014/diff/9001/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): ...
7 years, 11 months ago (2013-01-03 20:46:38 UTC) #5
SteveT
Testing looks good. Committing presently.
7 years, 11 months ago (2013-01-03 21:09:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/11753014/15001
7 years, 11 months ago (2013-01-03 21:09:45 UTC) #7
commit-bot: I haz the power
Presubmit check for 11753014-15001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-03 21:09:52 UTC) #8
SteveT
I made a terrible mistake: I actually had to flip the ifdef condition to get ...
7 years, 11 months ago (2013-01-03 21:12:28 UTC) #9
SteveT
Pinging this so hopefully Scott sees it when he gets in. :)
7 years, 11 months ago (2013-01-07 15:57:30 UTC) #10
sky
LGTM
7 years, 11 months ago (2013-01-07 16:00:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/11753014/7003
7 years, 11 months ago (2013-01-07 16:03:11 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-07 17:30:25 UTC) #13
Message was sent while issue was closed.
Change committed as 175352

Powered by Google App Engine
This is Rietveld 408576698