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

Issue 18732: Wire the eula and the dialog display code... (Closed)

Created:
11 years, 11 months ago by cpu_(ooo_6.6-7.5)
Modified:
9 years, 7 months ago
Reviewers:
huanr, kuchhal
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Wire the eula and the dialog display code - html, css and js to live in the installer as resources. The right combo of resources is selected based on system lang - currently the approach is to have chrome show the eula by spawing setup.exe --show-eula BUG=1468838 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8690

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 9

Patch Set 7 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -19 lines) Patch
A chrome/installer/setup/eula/oem.css View 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/installer/setup/eula/oem.js View 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/installer/setup/eula/oem_en.html View 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/installer/setup/main.cc View 1 2 3 4 5 6 6 chunks +31 lines, -13 lines 2 comments Download
M chrome/installer/setup/setup.rc View 1 2 3 4 5 2 chunks +24 lines, -2 lines 0 comments Download
M chrome/installer/util/html_dialog_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/util/l10n_string_util.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/installer/util/l10n_string_util.cc View 1 2 3 4 2 chunks +31 lines, -0 lines 0 comments Download
M chrome/installer/util/util_constants.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/installer/util/util_constants.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
cpu_(ooo_6.6-7.5)
11 years, 11 months ago (2009-01-24 01:46:58 UTC) #1
cpu_(ooo_6.6-7.5)
11 years, 11 months ago (2009-01-24 01:47:07 UTC) #2
kuchhal
I have not looked at the complete change but it looks like this change need ...
11 years, 11 months ago (2009-01-26 18:32:59 UTC) #3
cpu_(ooo_6.6-7.5)
It seems the only issue is the icon, I see the eulas being in the ...
11 years, 11 months ago (2009-01-26 19:41:18 UTC) #4
cpu_(ooo_6.6-7.5)
I have removed the terms html and now I am re-using the terms that are ...
11 years, 11 months ago (2009-01-26 21:35:31 UTC) #5
cpu_(ooo_6.6-7.5)
Now the icon is in app/theme and is part of the private repository. Put all ...
11 years, 11 months ago (2009-01-26 23:07:12 UTC) #6
huanr
OK with one change needed. http://codereview.chromium.org/18732/diff/62/264 File chrome/installer/setup/main.cc (right): http://codereview.chromium.org/18732/diff/62/264#newcode499 Line 499: } else if ...
11 years, 11 months ago (2009-01-26 23:09:11 UTC) #7
kuchhal
lgtm after you make the change in GetInstallOptions like Huan said. Some other comments below. ...
11 years, 11 months ago (2009-01-26 23:23:31 UTC) #8
cpu_(ooo_6.6-7.5)
thanks for the review. http://codereview.chromium.org/18732/diff/62/264 File chrome/installer/setup/main.cc (right): http://codereview.chromium.org/18732/diff/62/264#newcode446 Line 446: if (eula_path.empty()) On 2009/01/26 ...
11 years, 11 months ago (2009-01-27 00:42:43 UTC) #9
huanr
11 years, 11 months ago (2009-01-27 06:19:16 UTC) #10
A comment regarding your latest change.

http://codereview.chromium.org/18732/diff/284/73
File chrome/installer/setup/main.cc (right):

http://codereview.chromium.org/18732/diff/284/73#newcode233
Line 233: options |= installer_util::MASTER_PROFILE_REQUIRE_EULA;
There are two sets of constants, MasterPrefResult defined in master_preference.h
used for preferences, and InstallOption defined in util_constants.h used for
options. It is better to add an installer_util::REQUIRE_EULA in util_cosntants.h
and change the code to:

if (preferences & installer_util::MASTER_PROFILE_REQUIRE_EULA)
  options |= installer_util::REQUIRE_EULA;

This way we don't have potential risk of collision if a new setting is added.

http://codereview.chromium.org/18732/diff/284/73#newcode505
Line 505: } else if (installer_util::MASTER_PROFILE_REQUIRE_EULA & options) {
Same change here.

Powered by Google App Engine
This is Rietveld 408576698