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

Issue 11280067: Refactor SetOmahaExperimentLabel out of gcpai and into install_util. (Closed)

Created:
8 years, 1 month ago by SteveT
Modified:
7 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Refactor SetOmahaExperimentLabel out of gcpai and into install_util. Change the method to no longer write to both App GUIDs, just the one that matches the distribution of the caller. This means that GCAPI will only write to the Google Chrome product's client state key, and not to the Chrome Binaries. Replace SetOmahaExperimentLabel in the GCAPI code with a more specific version, and have SetOmahaExperimentLabel perform the general clobber-write to the registry. This is in preparation for future work in using the experiment_labels to transmit Chrome Variations. BUG=160251 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175671

Patch Set 1 : Init #

Total comments: 6

Patch Set 2 : nits addressed #

Total comments: 22

Patch Set 3 : grt nits #

Total comments: 2

Patch Set 4 : Added doc #

Total comments: 1

Patch Set 5 : Use distribution to determine appguid. #

Patch Set 6 : doc #

Patch Set 7 : Rebase #

Total comments: 28

Patch Set 8 : Addressed some additional grt comments. #

Patch Set 9 : Rebase. DLL Entry point added. #

Total comments: 9

Patch Set 10 : rebase; grt comments; unit tests #

Total comments: 4

Patch Set 11 : robertshield nits #

Total comments: 7

Patch Set 12 : grt test comments #

Total comments: 4

Patch Set 13 : grt additional comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -42 lines) Patch
M chrome/installer/gcapi/gcapi.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M chrome/installer/gcapi/gcapi_dll.cc View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/installer/gcapi/gcapi_omaha_experiment.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M chrome/installer/gcapi/gcapi_omaha_experiment.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -37 lines 0 comments Download
M chrome/installer/util/browser_distribution.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/browser_distribution.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution_dummy.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/google_chrome_sxs_distribution.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/google_chrome_sxs_distribution.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_constants.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_constants.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_settings.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_settings.cc View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +51 lines, -1 line 0 comments Download

Messages

Total messages: 37 (0 generated)
SteveT
Hi Rob, Mind taking a look at this first refactor? FYI - I have yet ...
8 years, 1 month ago (2012-11-19 21:56:36 UTC) #1
robertshield
looking good, some minor nits. re. manual testing, the easiest way I've found is to ...
8 years, 1 month ago (2012-11-20 15:29:49 UTC) #2
SteveT
Okay, nits addressed. I'll try out your suggestions for testing before committing this. Didn't realize ...
8 years, 1 month ago (2012-11-20 15:45:01 UTC) #3
grt (UTC plus 2)
drive-by. is it possible to get rid of the duplication of constants? https://codereview.chromium.org/11280067/diff/5002/chrome/installer/util/install_util.cc File chrome/installer/util/install_util.cc ...
8 years, 1 month ago (2012-11-20 16:05:46 UTC) #4
SteveT
Thanks for the comments. PTAL. Re: Duplication of constants: Are you referring to the App ...
8 years, 1 month ago (2012-11-20 23:23:50 UTC) #5
grt (UTC plus 2)
The definitive location for the app guids is in the various implementations of BrowserDistribution. If ...
8 years, 1 month ago (2012-11-21 20:14:18 UTC) #6
SteveT
Hey Greg, sounds like we need to discuss this a bit more so you understand ...
8 years, 1 month ago (2012-11-21 23:19:26 UTC) #7
grt (UTC plus 2)
Hi Steve. Major apologies for being unavailable to discuss this in person today. I've hammered ...
8 years, 1 month ago (2012-11-23 00:09:55 UTC) #8
SteveT
Had a question: If I use your suggested code in my SetOmahaExperimentLabel method: BrowserDistribution* dist ...
8 years, 1 month ago (2012-11-23 16:48:46 UTC) #9
grt (UTC plus 2)
On 2012/11/23 16:48:46, SteveT wrote: > Had a question: > > If I use your ...
8 years, 1 month ago (2012-11-23 18:26:37 UTC) #10
SteveT
On 2012/11/23 18:26:37, grt wrote: > On 2012/11/23 16:48:46, SteveT wrote: > > Had a ...
8 years, 1 month ago (2012-11-23 18:32:01 UTC) #11
grt (UTC plus 2)
On 2012/11/23 18:32:01, SteveT wrote: > On 2012/11/23 18:26:37, grt wrote: > > On 2012/11/23 ...
8 years, 1 month ago (2012-11-23 19:46:45 UTC) #12
SteveT
After chatting with Robert, we've decided to contact mgraboski@ to see if we can just ...
8 years, 1 month ago (2012-11-23 19:49:48 UTC) #13
SteveT
Hey Greg, PTAL and let me know if this resolves some of the major issues ...
8 years, 1 month ago (2012-11-23 21:41:28 UTC) #14
grt (UTC plus 2)
Hi Steve. This looks really good. Comments below. https://codereview.chromium.org/11280067/diff/15001/chrome/installer/gcapi/gcapi_omaha_experiment.h File chrome/installer/gcapi/gcapi_omaha_experiment.h (right): https://codereview.chromium.org/11280067/diff/15001/chrome/installer/gcapi/gcapi_omaha_experiment.h#newcode13 chrome/installer/gcapi/gcapi_omaha_experiment.h:13: bool ...
8 years, 1 month ago (2012-11-24 02:58:37 UTC) #15
grt (UTC plus 2)
Two final thoughts for now. https://codereview.chromium.org/11280067/diff/15001/chrome/installer/util/install_util.cc File chrome/installer/util/install_util.cc (right): https://codereview.chromium.org/11280067/diff/15001/chrome/installer/util/install_util.cc#newcode525 chrome/installer/util/install_util.cc:525: bool InstallUtil::SetOmahaExperimentLabel(const string16& experiment_label, ...
8 years, 1 month ago (2012-11-24 03:03:43 UTC) #16
SteveT
Hey Greg - had a couple questions inline... Addressed most of everything else. PTAL. I ...
8 years ago (2012-11-26 20:45:06 UTC) #17
grt (UTC plus 2)
Looking good. I forgot to mention: voluminous review feedback from me is a sign of ...
8 years ago (2012-11-26 21:19:05 UTC) #18
SteveT
On 2012/11/26 21:19:05, grt wrote: > Looking good. > > I forgot to mention: voluminous ...
8 years ago (2012-11-27 15:03:27 UTC) #19
SteveT
Hey Greg, Earlier we had our fingers crossed that calling BrowserDistribution::GetDistribution() would "do the right ...
8 years ago (2012-11-27 20:51:44 UTC) #20
grt (UTC plus 2)
The problem (which is neither your doing nor insurmountable) is that gcapi is calling into ...
8 years ago (2012-11-30 13:47:36 UTC) #21
SteveT
Hey there! Finally got around to some basic manual testing and clean up that ensures ...
8 years ago (2012-12-20 18:36:01 UTC) #22
grt (UTC plus 2)
lookin' good! google_update_settings_unittest.cc is a good place to add a unit test. the GoogleUpdateSettingsTest fixture ...
8 years ago (2012-12-20 19:45:33 UTC) #23
SteveT
Okay, unit tests are in. Let me know if there are some additional edge cases ...
7 years, 11 months ago (2013-01-07 21:16:52 UTC) #24
robertshield
change looks good, one note is that since the BrowserDistribuion classes are now being used, ...
7 years, 11 months ago (2013-01-07 22:14:04 UTC) #25
SteveT
Thanks for bringing that up. I'll bug you about doing that after this lands. https://chromiumcodereview.appspot.com/11280067/diff/27002/chrome/installer/gcapi/gcapi_omaha_experiment.cc ...
7 years, 11 months ago (2013-01-07 22:36:55 UTC) #26
grt (UTC plus 2)
lookin' sweet. https://chromiumcodereview.appspot.com/11280067/diff/18001/chrome/installer/gcapi/gcapi_dll.cc File chrome/installer/gcapi/gcapi_dll.cc (right): https://chromiumcodereview.appspot.com/11280067/diff/18001/chrome/installer/gcapi/gcapi_dll.cc#newcode28 chrome/installer/gcapi/gcapi_dll.cc:28: delete g_exit_manager; On 2013/01/07 21:16:52, SteveT wrote: ...
7 years, 11 months ago (2013-01-08 04:34:05 UTC) #27
SteveT
Cool beans. Back to you! https://chromiumcodereview.appspot.com/11280067/diff/33001/chrome/installer/util/google_update_settings_unittest.cc File chrome/installer/util/google_update_settings_unittest.cc (right): https://chromiumcodereview.appspot.com/11280067/diff/33001/chrome/installer/util/google_update_settings_unittest.cc#newcode119 chrome/installer/util/google_update_settings_unittest.cc:119: EXPECT_TRUE(GoogleUpdateSettings::SetExperimentLabels( Done. It's a ...
7 years, 11 months ago (2013-01-08 16:33:04 UTC) #28
grt (UTC plus 2)
lgtm w/ the two changes below. https://chromiumcodereview.appspot.com/11280067/diff/33001/chrome/installer/util/google_update_settings_unittest.cc File chrome/installer/util/google_update_settings_unittest.cc (right): https://chromiumcodereview.appspot.com/11280067/diff/33001/chrome/installer/util/google_update_settings_unittest.cc#newcode119 chrome/installer/util/google_update_settings_unittest.cc:119: EXPECT_TRUE(GoogleUpdateSettings::SetExperimentLabels( On 2013/01/08 ...
7 years, 11 months ago (2013-01-08 17:06:35 UTC) #29
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/11280067/diff/29002/chrome/installer/util/google_update_settings_unittest.cc File chrome/installer/util/google_update_settings_unittest.cc (right): https://chromiumcodereview.appspot.com/11280067/diff/29002/chrome/installer/util/google_update_settings_unittest.cc#newcode152 chrome/installer/util/google_update_settings_unittest.cc:152: EXPECT_FALSE(chrome->ShouldSetExperimentLabels()); chrome -> BrowserDistribution::GetSpecificDistribution(BrowserDistribution::CHROME_BROWSER)
7 years, 11 months ago (2013-01-08 17:07:39 UTC) #30
SteveT
Thanks! Waiting for happy bots, then I'll commit. Is there anything on the waterfall that ...
7 years, 11 months ago (2013-01-08 17:53:15 UTC) #31
grt (UTC plus 2)
On 2013/01/08 17:53:15, SteveT wrote: > Is there anything on the waterfall that checks additional ...
7 years, 11 months ago (2013-01-08 18:17:08 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/11280067/24002
7 years, 11 months ago (2013-01-08 21:09:59 UTC) #33
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 11 months ago (2013-01-08 22:18:08 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/11280067/24002
7 years, 11 months ago (2013-01-09 01:11:47 UTC) #35
commit-bot: I haz the power
Change committed as 175671
7 years, 11 months ago (2013-01-09 02:13:14 UTC) #36
SteveT
7 years, 11 months ago (2013-01-09 14:42:49 UTC) #37
Message was sent while issue was closed.
Robert - this patch has landed. What do we need to do with re: informing people
of build changes?

Powered by Google App Engine
This is Rietveld 408576698