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

Issue 12321061: Pulling user experiment code from BrowserDistribution to a new class. (Closed)

Created:
7 years, 10 months ago by huangs
Modified:
7 years, 9 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Pulling user experiment code from BrowserDistribution to a new class. This is part #2A of the refactoring task to pull out installation_state from installer_util. In the old code, code bloat exists is google_chrome_distribution.cc for user experiments. This brings in lots of dependencies, and prevents BrowserDistribution from being a light-weight information (if not constant) getter class. In this CL we pull: enum ToastUIflags{} struct UserExperiment{} GetExperimentDetails() LaunchUserExperiment() InactiveUserToastExperiment() from BrowserDistribution, and moved into a new class "class UserExperiment", with the following renames: struct UserExperiment => struct ExperimentDetails GetExperimentDetails() => CreateExperimentDetails() The functions are made into static members of UserExperiment. The only use on BrowserDistribution was in InactiveUserToastExperiment(), which now receives it as parameter. Finally, ShouldSetExperimentLabels() is left with BrowserDistributions, since it is light-weight. BUG=170398 TBR=ben Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188494

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Reupload with --similarity=90 to prevent patch failure in try jobs. #

Total comments: 6

Patch Set 3 : Reupload with --similarity=90 to prevent patch failure in try jobs. #

Total comments: 8

Patch Set 4 : Cleanup; fixing bug where every product runs the experiment! #

Patch Set 5 : Updating .gypi to fix compile error. #

Total comments: 21

Patch Set 6 : Stylistic changes; eliminating UserExperiment class in favour of namespace. #

Total comments: 5

Patch Set 7 : Sync. #

Patch Set 8 : Stylistic fixes; adding ...IfRequired() suffix to LaunchUserExperiment() and InactiveUserToastExper… #

Total comments: 4

Patch Set 9 : Fixing linking problem (forgot to save most recent file). #

Patch Set 10 : Sync. #

Patch Set 11 : Undoing ...IfRequired() suffix; using in BrowserDistribution and Product for dispatching. #

Total comments: 1

Patch Set 12 : Making user experiments unavailable for Chromium. #

Total comments: 11

Patch Set 13 : Removing namespace user_experiment::; moving HasUserExperiments() to BrowserDistribution; removing … #

Patch Set 14 : Adding GetUserDataPaths() to BrowserDistribution; replacing Product with other params in LaunchUser… #

Total comments: 26

Patch Set 15 : Style changes; removing passing of BrowserDistribution for experiments; specializing LaunchBrowserU… #

Total comments: 8

Patch Set 16 : Cleaups; removing BrowserDistirbution param from InactiveUserToastExperiment(). #

Patch Set 17 : Sync. #

Total comments: 2

Patch Set 18 : Fixing #includes. #

Patch Set 19 : *Only* making ProductOperation to use string16 instead of std::wstring; wrapping changes. #

Total comments: 28
Unified diffs Side-by-side diffs Delta from patch set Stats (+829 lines, -1641 lines) Patch
M chrome/browser/first_run/try_chrome_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +8 lines, -11 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +6 lines, -7 lines 4 comments Download
M chrome/installer/util/browser_distribution.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +2 lines, -48 lines 0 comments Download
M chrome/installer/util/browser_distribution.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -15 lines 0 comments Download
M chrome/installer/util/chrome_app_host_operations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +15 lines, -12 lines 0 comments Download
M chrome/installer/util/chrome_app_host_operations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +22 lines, -15 lines 0 comments Download
M chrome/installer/util/chrome_binaries_operations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +15 lines, -12 lines 0 comments Download
M chrome/installer/util/chrome_binaries_operations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +19 lines, -12 lines 0 comments Download
M chrome/installer/util/chrome_browser_operations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +15 lines, -12 lines 0 comments Download
M chrome/installer/util/chrome_browser_operations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +23 lines, -15 lines 0 comments Download
M chrome/installer/util/chrome_browser_sxs_operations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/installer/util/chrome_browser_sxs_operations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/chrome_frame_operations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +16 lines, -13 lines 0 comments Download
M chrome/installer/util/chrome_frame_operations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 9 chunks +25 lines, -19 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -20 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +3 lines, -525 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution_dummy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -17 lines 0 comments Download
M chrome/installer/util/google_chrome_sxs_distribution.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/product.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/installer/util/product.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/installer/util/product_operations.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +18 lines, -8 lines 0 comments Download
A chrome/installer/util/user_experiment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +68 lines, -0 lines 0 comments Download
A + chrome/installer/util/user_experiment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +538 lines, -872 lines 24 comments Download

Messages

Total messages: 54 (0 generated)
huangs
PTAL. https://codereview.chromium.org/12321061/diff/1012/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (right): https://codereview.chromium.org/12321061/diff/1012/chrome/installer/util/user_experiment.cc#newcode56 chrome/installer/util/user_experiment.cc:56: string16 LocalizeUrl(const wchar_t* url) { This routine is ...
7 years, 10 months ago (2013-02-21 23:41:36 UTC) #1
grt (UTC plus 2)
i didn't read the code that was moved very thoroughly. the new user_experiment.h doesn't comply ...
7 years, 10 months ago (2013-02-22 16:47:55 UTC) #2
gab
1st look. Can you highlight via comments in your next patch set which method were ...
7 years, 10 months ago (2013-02-22 19:44:53 UTC) #3
huangs
PTAL. https://chromiumcodereview.appspot.com/12321061/diff/1012/chrome/installer/util/user_experiment.h File chrome/installer/util/user_experiment.h (right): https://chromiumcodereview.appspot.com/12321061/diff/1012/chrome/installer/util/user_experiment.h#newcode25 chrome/installer/util/user_experiment.h:25: class UserExperiment { On 2013/02/22 16:47:55, grt wrote: ...
7 years, 10 months ago (2013-02-22 20:32:36 UTC) #4
gab
Some comments below. Cheers! Gab https://codereview.chromium.org/12321061/diff/2012/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/12321061/diff/2012/chrome/installer/setup/setup_main.cc#newcode927 chrome/installer/setup/setup_main.cc:927: installer::UserExperiment::LaunchUserExperiment(setup_path, On 2013/02/22 20:32:37, ...
7 years, 10 months ago (2013-02-25 22:09:53 UTC) #5
grt (UTC plus 2)
https://codereview.chromium.org/12321061/diff/4015/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (right): https://codereview.chromium.org/12321061/diff/4015/chrome/installer/util/user_experiment.cc#newcode1 chrome/installer/util/user_experiment.cc:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
7 years, 10 months ago (2013-02-26 02:42:09 UTC) #6
huangs
PTAL. The code is behind in sync (so try job has to be specially done), ...
7 years, 10 months ago (2013-02-26 03:22:25 UTC) #7
huangs
https://chromiumcodereview.appspot.com/12321061/diff/6010/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/6010/chrome/installer/util/user_experiment.cc#newcode403 chrome/installer/util/user_experiment.cc:403: void LaunchUserExperiment(BrowserDistribution* dist, |dist| can be obtained from |product|, ...
7 years, 10 months ago (2013-02-26 03:25:16 UTC) #8
gab
Looks good. Comments below. (FYI, I synced yesterday afternoon and didn't get hit by the ...
7 years, 10 months ago (2013-02-26 15:33:34 UTC) #9
huangs
PTAL. https://chromiumcodereview.appspot.com/12321061/diff/2012/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/2012/chrome/installer/setup/setup_main.cc#newcode927 chrome/installer/setup/setup_main.cc:927: installer::UserExperiment::LaunchUserExperiment(setup_path, Done (changed to *IfRequired()). https://chromiumcodereview.appspot.com/12321061/diff/6010/chrome/browser/first_run/try_chrome_dialog_view.cc File chrome/browser/first_run/try_chrome_dialog_view.cc ...
7 years, 10 months ago (2013-02-26 16:44:11 UTC) #10
gab
Looks really good, looks like you have linking problems though. https://codereview.chromium.org/12321061/diff/2016/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (right): https://codereview.chromium.org/12321061/diff/2016/chrome/installer/util/user_experiment.cc#newcode47 ...
7 years, 10 months ago (2013-02-26 18:09:53 UTC) #11
huangs
Sorry, forgot to save file... Now it builds. PTAL. https://chromiumcodereview.appspot.com/12321061/diff/2016/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/2016/chrome/installer/util/user_experiment.cc#newcode47 chrome/installer/util/user_experiment.cc:47: ...
7 years, 10 months ago (2013-02-26 18:52:51 UTC) #12
gab
On 2013/02/26 18:52:51, huangs1 wrote: > Sorry, forgot to save file... Now it builds. PTAL. ...
7 years, 10 months ago (2013-02-26 18:54:56 UTC) #13
grt (UTC plus 2)
let's talk tomorrow. i don't like the "IfRequired" suffix or the fact that policy is ...
7 years, 10 months ago (2013-02-27 02:13:33 UTC) #14
huangs
Here's another preliminary fix. Some uncertainties: - Looking at the old code, it appears that ...
7 years, 9 months ago (2013-03-04 21:47:49 UTC) #15
gab
On 2013/03/04 21:47:49, huangs1 wrote: > Here's another preliminary fix. Some uncertainties: > > - ...
7 years, 9 months ago (2013-03-04 22:07:25 UTC) #16
huangs
Ah, I see... PTAL.
7 years, 9 months ago (2013-03-04 23:10:33 UTC) #17
gab
Some comments, will wait for grt to chime in. Cheers! Gab https://codereview.chromium.org/12321061/diff/21006/chrome/installer/util/product.cc File chrome/installer/util/product.cc (right): ...
7 years, 9 months ago (2013-03-04 23:40:30 UTC) #18
grt (UTC plus 2)
https://codereview.chromium.org/12321061/diff/21006/chrome/installer/util/product.cc File chrome/installer/util/product.cc (right): https://codereview.chromium.org/12321061/diff/21006/chrome/installer/util/product.cc#newcode170 chrome/installer/util/product.cc:170: if (operations_->ShouldLaunchUserExperiment()) { what i had in mind is: ...
7 years, 9 months ago (2013-03-05 14:33:21 UTC) #19
gab
SGTM. https://codereview.chromium.org/12321061/diff/21006/chrome/installer/util/product.cc File chrome/installer/util/product.cc (right): https://codereview.chromium.org/12321061/diff/21006/chrome/installer/util/product.cc#newcode170 chrome/installer/util/product.cc:170: if (operations_->ShouldLaunchUserExperiment()) { On 2013/03/05 14:33:22, grt wrote: ...
7 years, 9 months ago (2013-03-05 14:58:00 UTC) #20
huangs
https://chromiumcodereview.appspot.com/12321061/diff/21006/chrome/installer/util/product.cc File chrome/installer/util/product.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/21006/chrome/installer/util/product.cc#newcode170 chrome/installer/util/product.cc:170: if (operations_->ShouldLaunchUserExperiment()) { Personally I'd prefer NOT changing Operations, ...
7 years, 9 months ago (2013-03-05 15:38:00 UTC) #21
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/12321061/diff/21006/chrome/installer/util/product.cc File chrome/installer/util/product.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/21006/chrome/installer/util/product.cc#newcode170 chrome/installer/util/product.cc:170: if (operations_->ShouldLaunchUserExperiment()) { On 2013/03/05 15:38:00, huangs1 wrote: > ...
7 years, 9 months ago (2013-03-05 16:30:49 UTC) #22
huangs
This is an intermediate update, as a "lite" version without dependency on ProductOperations. I'm going ...
7 years, 9 months ago (2013-03-05 16:48:34 UTC) #23
huangs
Wait, installer::LaunchUserExperiment() only has 2 callers in setup_main.cc, and is not likely to get more. ...
7 years, 9 months ago (2013-03-05 17:04:57 UTC) #24
gab
On 2013/03/05 17:04:57, huangs1 wrote: > Wait, installer::LaunchUserExperiment() only has 2 callers in setup_main.cc, and ...
7 years, 9 months ago (2013-03-05 20:08:05 UTC) #25
huangs
That's what I want as well. CMIIW, the impression I'm getting from grt@ is that ...
7 years, 9 months ago (2013-03-05 20:21:28 UTC) #26
grt (UTC plus 2)
On 2013/03/05 17:04:57, huangs1 wrote: > Wait, installer::LaunchUserExperiment() only has 2 callers in setup_main.cc, and ...
7 years, 9 months ago (2013-03-05 21:18:24 UTC) #27
gab
On 2013/03/05 21:18:24, grt wrote: > On 2013/03/05 17:04:57, huangs1 wrote: > > Wait, installer::LaunchUserExperiment() ...
7 years, 9 months ago (2013-03-05 21:26:37 UTC) #28
huangs
On 2013/03/05 21:18:24, grt wrote: > On 2013/03/05 17:04:57, huangs1 wrote: > > Wait, installer::LaunchUserExperiment() ...
7 years, 9 months ago (2013-03-05 21:40:45 UTC) #29
grt (UTC plus 2)
On 2013/03/05 21:40:45, huangs1 wrote: > On 2013/03/05 21:18:24, grt wrote: > > On 2013/03/05 ...
7 years, 9 months ago (2013-03-05 21:46:54 UTC) #30
huangs
Okay, new plan: - Replace UserExperiment::LaunchUserExperiment() parameter Product with what it's used for; 3 things: ...
7 years, 9 months ago (2013-03-05 21:58:45 UTC) #31
huangs
Changes: - To have installer::LaunchUserExperiment() not take Product, the parameters got streamlined. In particular, we ...
7 years, 9 months ago (2013-03-07 20:57:15 UTC) #32
grt (UTC plus 2)
i like this a lot more. almost there! https://codereview.chromium.org/12321061/diff/49001/chrome/installer/util/browser_distribution.h File chrome/installer/util/browser_distribution.h (right): https://codereview.chromium.org/12321061/diff/49001/chrome/installer/util/browser_distribution.h#newcode137 chrome/installer/util/browser_distribution.h:137: virtual ...
7 years, 9 months ago (2013-03-12 14:32:18 UTC) #33
huangs
PTAL. https://chromiumcodereview.appspot.com/12321061/diff/49001/chrome/installer/util/browser_distribution.h File chrome/installer/util/browser_distribution.h (right): https://chromiumcodereview.appspot.com/12321061/diff/49001/chrome/installer/util/browser_distribution.h#newcode137 chrome/installer/util/browser_distribution.h:137: virtual bool HasUserExperiments() const; On 2013/03/12 14:32:18, grt ...
7 years, 9 months ago (2013-03-12 18:03:07 UTC) #34
grt (UTC plus 2)
Please be sure to test that the toast still works. Here are some instructions for ...
7 years, 9 months ago (2013-03-12 19:36:18 UTC) #35
huangs
Also verified that the System-level toast appears. PTAL. https://chromiumcodereview.appspot.com/12321061/diff/49001/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/49001/chrome/installer/util/user_experiment.cc#newcode541 chrome/installer/util/user_experiment.cc:541: dist->GetType())); ...
7 years, 9 months ago (2013-03-14 17:20:44 UTC) #36
grt (UTC plus 2)
lgtm. nice work, sam.
7 years, 9 months ago (2013-03-14 18:59:35 UTC) #37
huangs
OWNER review to ben@ for chrome/chrome_installer_util.gypi
7 years, 9 months ago (2013-03-14 23:12:41 UTC) #38
grt (UTC plus 2)
Hi Sam. Since the chrome/ change is just to the .gypi file, you can TBR ...
7 years, 9 months ago (2013-03-15 13:21:27 UTC) #39
huangs
Yup, I always check. :)
7 years, 9 months ago (2013-03-15 14:33:46 UTC) #40
huangs
Ah I see. Strange that it compiles on my machine. Let me double check.
7 years, 9 months ago (2013-03-15 14:56:05 UTC) #41
huangs
https://chromiumcodereview.appspot.com/12321061/diff/49028/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/49028/chrome/installer/util/user_experiment.cc#newcode7 chrome/installer/util/user_experiment.cc:7: #include <sddl.h> On 2013/03/15 13:21:28, grt wrote: > i ...
7 years, 9 months ago (2013-03-15 15:14:12 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/12321061/88001
7 years, 9 months ago (2013-03-15 16:06:38 UTC) #43
commit-bot: I haz the power
Presubmit check for 12321061-88001 failed and returned exit status 1. INFO:root:Found 23 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-15 16:06:54 UTC) #44
huangs
This is to eliminate presubmit error. Note that #include "base/string16.h" is the only include (the ...
7 years, 9 months ago (2013-03-15 20:39:09 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/12321061/93001
7 years, 9 months ago (2013-03-15 20:39:46 UTC) #46
commit-bot: I haz the power
Change committed as 188494
7 years, 9 months ago (2013-03-15 22:49:14 UTC) #47
gab
Post-commit comments (sorry was on vacation last week). Cheers! Gab https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/setup/setup_main.cc#newcode1432 ...
7 years, 9 months ago (2013-03-21 14:53:28 UTC) #48
grt (UTC plus 2)
Good lookin' out, Gab. Here are my comments on your comments since I had some ...
7 years, 9 months ago (2013-03-21 17:23:49 UTC) #49
huangs
Thanks for the comments. After I push out my big code review to erikwright@ today, ...
7 years, 9 months ago (2013-03-21 17:31:25 UTC) #50
gab
https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/setup/setup_main.cc#newcode1432 chrome/installer/setup/setup_main.cc:1432: installer::InactiveUserToastExperiment( On 2013/03/21 17:23:49, grt wrote: > On 2013/03/21 ...
7 years, 9 months ago (2013-03-21 19:59:07 UTC) #51
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (left): https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/util/user_experiment.cc#oldcode238 chrome/installer/util/user_experiment.cc:238: product.AppendProductFlags(&cmd_line); On 2013/03/21 19:59:07, gab wrote: > On 2013/03/21 ...
7 years, 9 months ago (2013-03-26 02:49:14 UTC) #52
gab
https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/util/user_experiment.cc File chrome/installer/util/user_experiment.cc (left): https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/util/user_experiment.cc#oldcode238 chrome/installer/util/user_experiment.cc:238: product.AppendProductFlags(&cmd_line); On 2013/03/26 02:49:15, grt wrote: > On 2013/03/21 ...
7 years, 9 months ago (2013-03-26 15:02:00 UTC) #53
huangs
7 years, 9 months ago (2013-03-26 22:00:24 UTC) #54
Message was sent while issue was closed.
Follow-up review for the simpler changes is here

https://codereview.chromium.org/12998005/

The more complex changes (re. user experiments and cmd_line) will be done in a
different CL.

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/s...
File chrome/installer/setup/setup_main.cc (right):

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/s...
chrome/installer/setup/setup_main.cc:1432:
installer::InactiveUserToastExperiment(
Added comments (in new CL).

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
File chrome/installer/util/user_experiment.cc (left):

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
chrome/installer/util/user_experiment.cc:238:
product.AppendProductFlags(&cmd_line);
No-op.

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
File chrome/installer/util/user_experiment.cc (right):

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
chrome/installer/util/user_experiment.cc:197: bool
LaunchSetupAsConsoleUser(CommandLine* cmd_line) {
I think the entire UserExperiment stuff should be cleaned up. But I want to do
low-risk changes first to get them out of the way!

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
chrome/installer/util/user_experiment.cc:398: if ((NEW_VERSION_UPDATED !=
status) && (REENTRY_SYS_UPDATE != status)) {
On 2013/03/21 14:53:28, gab wrote:
> nit: 
> if (status != NEW_VERSION_UPDATED && status != REENTRY_SYS_UPDATE)
> 
> (i.e., no need for the extra brackets and always put the constants on the RHS
of
> an equality check)

Done.

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
chrome/installer/util/user_experiment.cc:432:
BrowserDistribution::CHROME_BROWSER);
No-op.

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
chrome/installer/util/user_experiment.cc:487: const Product& installation,
Done (since this is a smaller CL, should be harmless).

https://chromiumcodereview.appspot.com/12321061/diff/93001/chrome/installer/u...
chrome/installer/util/user_experiment.cc:534:
installation.distribution()->GetType()));
On 2013/03/21 14:53:28, gab wrote:
> I find this indentation hard to read, I think this fits if you replace
> |installation| by |product| as suggested above:
>    CommandLine cmd(InstallUtil::GetChromeUninstallCmd(
>                        system_level_toast,
product.distribution()->GetType()));

Done.

Powered by Google App Engine
This is Rietveld 408576698