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

Issue 12223062: Support variations_seed parameter in MasterPrefs. (Closed)

Created:
7 years, 10 months ago by Alexei Svitkine (slow)
Modified:
7 years, 10 months ago
Reviewers:
SteveT, gab, sky
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things)
Visibility:
Public.

Description

Support variations_seed parameter in MasterPrefs. Also, cleans up SetupMasterPrefsFromInstallPrefs() to be more conformant to the style guide and adds a unit test. BUG=175476 TEST=Test that specifying a custom variations_seed in a master prefs file to the installer (via --installerdata=path), results in that seed being used on first run. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182631

Patch Set 1 : #

Total comments: 9

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -17 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 6 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/first_run/first_run_internal.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/first_run/first_run_unittest.cc View 1 2 3 2 chunks +24 lines, -3 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Alexei Svitkine (slow)
Gab, Steve - please take a look. I still need to test this manually by ...
7 years, 10 months ago (2013-02-11 22:30:02 UTC) #1
gab
Some questions: 1) Why is this required? Is it to get first run Finch experiments ...
7 years, 10 months ago (2013-02-11 23:44:01 UTC) #2
Alexei Svitkine (slow)
Please refer to go/finch-omaha-first-run for the overall design. I'll answer your questions below briefly, but ...
7 years, 10 months ago (2013-02-11 23:54:35 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/12223062/diff/9009/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/12223062/diff/9009/chrome/browser/chrome_browser_main.cc#newcode958 chrome/browser/chrome_browser_main.cc:958: if (!master_prefs_->variations_seed.empty()) { On 2013/02/11 23:44:01, gab wrote: > ...
7 years, 10 months ago (2013-02-12 00:11:31 UTC) #4
gab
Will take a full look again tomorrow. Cheers, Gab https://codereview.chromium.org/12223062/diff/9009/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/12223062/diff/9009/chrome/browser/chrome_browser_main.cc#newcode958 chrome/browser/chrome_browser_main.cc:958: ...
7 years, 10 months ago (2013-02-12 00:31:06 UTC) #5
SteveT
Question inline. https://codereview.chromium.org/12223062/diff/3017/chrome/browser/first_run/first_run_unittest.cc File chrome/browser/first_run/first_run_unittest.cc (right): https://codereview.chromium.org/12223062/diff/3017/chrome/browser/first_run/first_run_unittest.cc#newcode49 chrome/browser/first_run/first_run_unittest.cc:49: } Is it worth testing the negative ...
7 years, 10 months ago (2013-02-12 02:01:56 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/12223062/diff/3017/chrome/browser/first_run/first_run_unittest.cc File chrome/browser/first_run/first_run_unittest.cc (right): https://codereview.chromium.org/12223062/diff/3017/chrome/browser/first_run/first_run_unittest.cc#newcode49 chrome/browser/first_run/first_run_unittest.cc:49: } On 2013/02/12 02:01:56, SteveT wrote: > Is it ...
7 years, 10 months ago (2013-02-12 02:10:02 UTC) #7
SteveT
LGTM https://codereview.chromium.org/12223062/diff/28001/chrome/browser/first_run/first_run_unittest.cc File chrome/browser/first_run/first_run_unittest.cc (right): https://codereview.chromium.org/12223062/diff/28001/chrome/browser/first_run/first_run_unittest.cc#newcode56 chrome/browser/first_run/first_run_unittest.cc:56: EXPECT_EQ("", out_prefs.variations_seed); nit: std::string() instead of "" ?
7 years, 10 months ago (2013-02-12 02:12:30 UTC) #8
gab
Some comments directly on doc.
7 years, 10 months ago (2013-02-12 18:33:53 UTC) #9
gab
As I mentioned on the doc, not a fan of this approach (master_prefs -> user_prefs ...
7 years, 10 months ago (2013-02-13 19:07:22 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/12223062/diff/28001/chrome/browser/first_run/first_run_unittest.cc File chrome/browser/first_run/first_run_unittest.cc (right): https://codereview.chromium.org/12223062/diff/28001/chrome/browser/first_run/first_run_unittest.cc#newcode56 chrome/browser/first_run/first_run_unittest.cc:56: EXPECT_EQ("", out_prefs.variations_seed); On 2013/02/12 02:12:30, SteveT wrote: > nit: ...
7 years, 10 months ago (2013-02-13 23:58:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/12223062/31001
7 years, 10 months ago (2013-02-14 00:02:37 UTC) #12
commit-bot: I haz the power
Presubmit check for 12223062-31001 failed and returned exit status 1. INFO:root:Found 7 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-14 00:02:42 UTC) #13
Alexei Svitkine (slow)
+sky for chrome/ OWNERS
7 years, 10 months ago (2013-02-14 01:21:41 UTC) #14
sky
LGTM
7 years, 10 months ago (2013-02-14 15:51:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/12223062/31001
7 years, 10 months ago (2013-02-14 22:36:35 UTC) #16
commit-bot: I haz the power
7 years, 10 months ago (2013-02-15 06:36:06 UTC) #17
Message was sent while issue was closed.
Change committed as 182631

Powered by Google App Engine
This is Rietveld 408576698