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

Issue 10160011: Create VisualElementsManifest.xml from template -- install VisualElements in the version directory (Closed)

Created:
8 years, 8 months ago by gab
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), grt+watch_chromium.org, brettw-cc_chromium.org, robertshield
Visibility:
Public.

Description

1) Generate VisualElementsManifest.xml at install time from a pre-defined template. This allows us to put images in the version directory (i.e. a path that changes each istall; rather than needing the images beside chrome.exe). This also allows us to localize the Display Name of Google Chrome. This however does not fix bug #123376 (we have the same issue here). 2) Fixes create_installer_archive.py to not create empty directories for output directories specified in chrome.release for which the input is not present when packaging chrome.7z 3) Removes "Dictionaries\en-US.bdic: %(ChromeDir)s\Dictionaries" from chrome.release which has not been packaged since Chrome 17 (and maybe even before that). 4) (2+3) have the side-effect that there is no longer an empty Dictionaries/ directory created at install. BUG=123319, 123376 TEST=Install Chrome on Win8 and watch VisualElementsManifest.xml land with the correct values. Overinstall Chrome on a Win8 install with VisualElementsManifest.xml from an installer that doesn't have VisualElements --> ensure VisualElementsManifest.xml is deleted and icons go back to default-style. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135615

Patch Set 1 #

Patch Set 2 : remove shortname property #

Total comments: 5

Patch Set 3 : simpler -- hardcoded template + SStringPrintf #

Total comments: 2

Patch Set 4 : lintttttt #

Total comments: 43

Patch Set 5 : fix the world #

Patch Set 6 : rewording #

Total comments: 33

Patch Set 7 : fix nits #

Patch Set 8 : refactored the new code --> template logic in install_util.cc #

Total comments: 19

Patch Set 9 : i love semicolons #

Patch Set 10 : better when it compiles... #

Total comments: 8

Patch Set 11 : address comments and move to public interface for testing #

Total comments: 6

Patch Set 12 : gg #

Patch Set 13 : untested tests... #

Total comments: 28

Patch Set 14 : test and gyp fixes #

Patch Set 15 : add comment #

Total comments: 14

Patch Set 16 : greg's the man :) #

Patch Set 17 : typo typi typa #

Total comments: 8

Patch Set 18 : nits + remove conditional win8 #

Patch Set 19 : no win8 conditional for move #

Patch Set 20 : oops dont include robert's gyp changes... #

Patch Set 21 : new line at end of install_unittest.cc #

Total comments: 2

Patch Set 22 : single \n at EOF #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -61 lines) Patch
M chrome/chrome_installer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +35 lines, -4 lines 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/installer/setup/install.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +12 lines, -1 line 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +75 lines, -3 lines 0 comments Download
A chrome/installer/setup/install_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +15 lines, -35 lines 0 comments Download
M chrome/installer/setup/setup_constants.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/installer/setup/setup_constants.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/tools/build/win/create_installer_archive.py View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
gab
PTAL. Here is an example of the manifest that would be passed to this mechanism: ...
8 years, 8 months ago (2012-04-27 01:40:21 UTC) #1
gab
There is still a weird error in SStringPrintf, but please take a look at the ...
8 years, 7 months ago (2012-05-01 01:59:12 UTC) #2
grt (UTC plus 2)
On Mon, Apr 30, 2012 at 9:59 PM, <gab@chromium.org> wrote: > http://codereview.chromium.**org/10160011/diff/5002/chrome/** > installer/setup/install_**worker.cc#newcode99<http://codereview.chromium.org/10160011/diff/5002/chrome/installer/setup/install_worker.cc#newcode99> > ...
8 years, 7 months ago (2012-05-01 02:29:08 UTC) #3
grt (UTC plus 2)
me like. please see comments. good night. http://codereview.chromium.org/10160011/diff/2001/chrome/installer/mini_installer/chrome.release File chrome/installer/mini_installer/chrome.release (right): http://codereview.chromium.org/10160011/diff/2001/chrome/installer/mini_installer/chrome.release#newcode40 chrome/installer/mini_installer/chrome.release:40: theme_resources_metro_1x.pak: %(VersionDir)s\ ...
8 years, 7 months ago (2012-05-01 04:17:03 UTC) #4
grt (UTC plus 2)
one more comment. please update the CL description, too. thanks. https://chromiumcodereview.appspot.com/10160011/diff/10002/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://chromiumcodereview.appspot.com/10160011/diff/10002/chrome/installer/setup/install_worker.cc#newcode95 ...
8 years, 7 months ago (2012-05-01 04:23:24 UTC) #5
gab
Addressed mostly all comments, but the moving of the function (I wanted you to see ...
8 years, 7 months ago (2012-05-01 22:19:02 UTC) #6
gab
On 2012/05/01 02:29:08, grt wrote: > On Mon, Apr 30, 2012 at 9:59 PM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=gab@chromium.org> ...
8 years, 7 months ago (2012-05-01 22:21:47 UTC) #7
grt (UTC plus 2)
Looks pretty good. Please add to the description the bit about the Dictionaries directory no ...
8 years, 7 months ago (2012-05-02 15:09:43 UTC) #8
grt (UTC plus 2)
there's always a straggler... https://chromiumcodereview.appspot.com/10160011/diff/18002/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://chromiumcodereview.appspot.com/10160011/diff/18002/chrome/installer/setup/install_worker.cc#newcode93 chrome/installer/setup/install_worker.cc:93: // TODO(grt): http://crbug.com/75152 Write a ...
8 years, 7 months ago (2012-05-02 15:13:09 UTC) #9
gab
Comments addressed in patch set 7. CL refactored in patch set 8 to address code ...
8 years, 7 months ago (2012-05-02 20:55:58 UTC) #10
grt (UTC plus 2)
looking really good. http://codereview.chromium.org/10160011/diff/10002/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/10160011/diff/10002/chrome/installer/setup/install_worker.cc#newcode61 chrome/installer/setup/install_worker.cc:61: void AddVisualElementsInstallWorkItems(const FilePath& src_path, On 2012/05/02 ...
8 years, 7 months ago (2012-05-03 17:49:36 UTC) #11
gab
Uploaded fix to comments while I'm writing tests. http://codereview.chromium.org/10160011/diff/10002/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/10160011/diff/10002/chrome/installer/setup/install_worker.cc#newcode61 chrome/installer/setup/install_worker.cc:61: void ...
8 years, 7 months ago (2012-05-03 19:03:47 UTC) #12
grt (UTC plus 2)
lookin' good http://codereview.chromium.org/10160011/diff/28002/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): http://codereview.chromium.org/10160011/diff/28002/chrome/installer/setup/install.cc#newcode461 chrome/installer/setup/install.cc:461: << ". Proceeding with the install anyways..."; ...
8 years, 7 months ago (2012-05-03 19:37:58 UTC) #13
gab
Addressed comments and made CreateVisualElementsManifest public for testing. http://codereview.chromium.org/10160011/diff/28002/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): http://codereview.chromium.org/10160011/diff/28002/chrome/installer/setup/install.cc#newcode461 chrome/installer/setup/install.cc:461: << ...
8 years, 7 months ago (2012-05-03 19:50:24 UTC) #14
grt (UTC plus 2)
snip snip http://codereview.chromium.org/10160011/diff/38011/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): http://codereview.chromium.org/10160011/diff/38011/chrome/installer/setup/install.cc#newcode356 chrome/installer/setup/install.cc:356: remove empty line http://codereview.chromium.org/10160011/diff/38011/chrome/installer/setup/install.h File chrome/installer/setup/install.h (right): ...
8 years, 7 months ago (2012-05-03 20:01:50 UTC) #15
grt (UTC plus 2)
Please update the reference to bug 123376 in the text of the CL description (it's ...
8 years, 7 months ago (2012-05-03 20:27:34 UTC) #16
gab
On 2012/05/03 20:27:34, grt wrote: > Please update the reference to bug 123376 in the ...
8 years, 7 months ago (2012-05-03 20:29:10 UTC) #17
gab
I added some tests now. I have yet to test the tests as I'm having ...
8 years, 7 months ago (2012-05-04 00:04:11 UTC) #18
gab
On 2012/05/04 00:04:11, gab wrote: > I added some tests now. I have yet to ...
8 years, 7 months ago (2012-05-04 00:05:38 UTC) #19
grt (UTC plus 2)
looks good. i think the test can be simplified quite a bit; see below. http://codereview.chromium.org/10160011/diff/49002/chrome/installer/setup/install.cc ...
8 years, 7 months ago (2012-05-04 13:19:14 UTC) #20
gab
Thanks Greg for your test wisdom. Thanks Robert for your gyp wisdom. Discussed the registered_dlls.h ...
8 years, 7 months ago (2012-05-04 17:26:35 UTC) #21
gab
[+cc robertshield] Note: I also changed the title to reflect the new state of this ...
8 years, 7 months ago (2012-05-04 17:27:29 UTC) #22
grt (UTC plus 2)
lg http://codereview.chromium.org/10160011/diff/58004/chrome/installer/setup/install.h File chrome/installer/setup/install.h (right): http://codereview.chromium.org/10160011/diff/58004/chrome/installer/setup/install.h#newcode1 chrome/installer/setup/install.h:1: // Copyright (c) 2011 The Chromium Authors. All ...
8 years, 7 months ago (2012-05-04 21:22:42 UTC) #23
gab
See below, weekend commits are great :). http://codereview.chromium.org/10160011/diff/58004/chrome/installer/setup/install.h File chrome/installer/setup/install.h (right): http://codereview.chromium.org/10160011/diff/58004/chrome/installer/setup/install.h#newcode1 chrome/installer/setup/install.h:1: // Copyright ...
8 years, 7 months ago (2012-05-04 23:02:09 UTC) #24
grt (UTC plus 2)
final nits (i hope ;-) ) https://chromiumcodereview.appspot.com/10160011/diff/58004/chrome/installer/setup/install_unittest.cc File chrome/installer/setup/install_unittest.cc (right): https://chromiumcodereview.appspot.com/10160011/diff/58004/chrome/installer/setup/install_unittest.cc#newcode84 chrome/installer/setup/install_unittest.cc:84: "Image='0.0.0.0\\VisualElements\\splash-620x300.png'/>\r\n" On 2012/05/04 ...
8 years, 7 months ago (2012-05-05 02:16:56 UTC) #25
robertshield
Looks awesome, just one question from me pending Sir Greg's final approval: http://codereview.chromium.org/10160011/diff/54005/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc ...
8 years, 7 months ago (2012-05-05 05:13:20 UTC) #26
gab
See comments below, testing robert's suggestion now. http://codereview.chromium.org/10160011/diff/58004/chrome/installer/setup/install_unittest.cc File chrome/installer/setup/install_unittest.cc (right): http://codereview.chromium.org/10160011/diff/58004/chrome/installer/setup/install_unittest.cc#newcode84 chrome/installer/setup/install_unittest.cc:84: "Image='0.0.0.0\\VisualElements\\splash-620x300.png'/>\r\n" On ...
8 years, 7 months ago (2012-05-05 16:19:51 UTC) #27
gab
Testing done (see below) => no need to conditional on Win8 :). Ignore patchset 19 ...
8 years, 7 months ago (2012-05-06 16:06:43 UTC) #28
grt (UTC plus 2)
LGTM!!!111!18 (with one question/nit) https://chromiumcodereview.appspot.com/10160011/diff/60006/chrome/installer/setup/install_unittest.cc File chrome/installer/setup/install_unittest.cc (right): https://chromiumcodereview.appspot.com/10160011/diff/60006/chrome/installer/setup/install_unittest.cc#newcode105 chrome/installer/setup/install_unittest.cc:105: it looks like there's a ...
8 years, 7 months ago (2012-05-07 01:37:31 UTC) #29
robertshield
lgtm
8 years, 7 months ago (2012-05-07 02:47:18 UTC) #30
grt (UTC plus 2)
lgtm++
8 years, 7 months ago (2012-05-07 02:48:15 UTC) #31
gab
https://chromiumcodereview.appspot.com/10160011/diff/60006/chrome/installer/setup/install_unittest.cc File chrome/installer/setup/install_unittest.cc (right): https://chromiumcodereview.appspot.com/10160011/diff/60006/chrome/installer/setup/install_unittest.cc#newcode105 chrome/installer/setup/install_unittest.cc:105: On 2012/05/07 01:37:32, grt wrote: > it looks like ...
8 years, 7 months ago (2012-05-07 02:48:54 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/10160011/62005
8 years, 7 months ago (2012-05-07 02:50:07 UTC) #33
commit-bot: I haz the power
8 years, 7 months ago (2012-05-07 04:08:58 UTC) #34
Change committed as 135615

Powered by Google App Engine
This is Rietveld 408576698