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. Review URL: https://chromiumcodereview.appspot.com/11753014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175352 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment