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

Issue 10905238: If Chrome Binaries version > App Host version, then update App Host. (Closed)

Created:
8 years, 3 months ago by huangs
Modified:
8 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, grt+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

After delegating to chrome.exe (i.e. to launch a packaged app) check if app_host is out-of-date and, if so, invoke the Chrome Binaries installer to update it. R=erikwright,grt TBR=brettw BUG=138315 NOTRY=True TEST=Install Chrome vX at system level. Install App Host vY at user-level, where Y < X. Launch app_host.exe. Inspect "Properties" of app_host.exe and verify that it has been updated to vX. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156934

Patch Set 1 #

Total comments: 16

Patch Set 2 : Refactoring; adding app_host_upgrade.*; focusing on system-level setup.exe. #

Total comments: 34

Patch Set 3 : Style issues; removing unneeded debug messages. #

Total comments: 63

Patch Set 4 : Renamed app_host_upgrade.* to update.*; changed how App Host version is obtained; moved code to upd… #

Total comments: 38

Patch Set 5 : Including version info in app_hosts.exe; making GetChromePathForInstallationLevel() check Chrome in… #

Total comments: 18

Patch Set 6 : Renaming main update routine to LaunchAppHostUpdate(); fixing parameters of helper routines. #

Total comments: 25

Patch Set 7 : Undo bad renaming; cosmetics. #

Total comments: 7

Patch Set 8 : Small edits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -56 lines) Patch
A chrome/app/app_host_exe.ver View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_host/app_host_main.cc View 1 2 3 4 5 6 3 chunks +10 lines, -9 lines 0 comments Download
A chrome/browser/extensions/app_host/update.h View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/extensions/app_host/update.cc View 1 2 3 4 5 6 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/launcher_support/chrome_launcher_support.h View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/installer/launcher_support/chrome_launcher_support.cc View 1 2 3 4 5 6 7 3 chunks +63 lines, -43 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
huangs
This is a functional draft that need refactoring & comments. Please take a look. Thanks!
8 years, 3 months ago (2012-09-12 14:43:40 UTC) #1
erikwright (departed)
I think InstallationState (chrome/installer/util/installation_state.h) should move into a standalone target and we could probably get ...
8 years, 3 months ago (2012-09-12 15:53:50 UTC) #2
huangs
Please take another look! https://chromiumcodereview.appspot.com/10905238/diff/1/chrome/browser/extensions/app_host/app_host_main.cc File chrome/browser/extensions/app_host/app_host_main.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/1/chrome/browser/extensions/app_host/app_host_main.cc#newcode54 chrome/browser/extensions/app_host/app_host_main.cc:54: // Upgrade App Host if ...
8 years, 3 months ago (2012-09-12 19:24:27 UTC) #3
erikwright (departed)
Lots of minor comments. Generally LG. One thing that I remember, after reading through this, ...
8 years, 3 months ago (2012-09-13 01:13:43 UTC) #4
huangs
Please take another look. I implemented everything except removing the parameter in UpgradeAppHost() (will discuss). ...
8 years, 3 months ago (2012-09-13 04:40:47 UTC) #5
grt (UTC plus 2)
drive-by https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/browser/extensions/app_host/app_host_main.cc File chrome/browser/extensions/app_host/app_host_main.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/browser/extensions/app_host/app_host_main.cc#newcode49 chrome/browser/extensions/app_host/app_host_main.cc:49: if (launch_result) { no braces for single-line conditionals ...
8 years, 3 months ago (2012-09-13 13:14:42 UTC) #6
erikwright (departed)
Thanks grt@ for your great comments. https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/browser/extensions/app_host/app_host_main.cc File chrome/browser/extensions/app_host/app_host_main.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/browser/extensions/app_host/app_host_main.cc#newcode56 chrome/browser/extensions/app_host/app_host_main.cc:56: // newer than ...
8 years, 3 months ago (2012-09-13 13:48:26 UTC) #7
huangs
Please take another look. Thanks! https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/browser/extensions/app_host/app_host_main.cc File chrome/browser/extensions/app_host/app_host_main.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/browser/extensions/app_host/app_host_main.cc#newcode49 chrome/browser/extensions/app_host/app_host_main.cc:49: if (launch_result) { On ...
8 years, 3 months ago (2012-09-13 18:46:00 UTC) #8
huangs
It turns out app_host.exe does not contain version information. Trying to figure out how do ...
8 years, 3 months ago (2012-09-13 19:27:23 UTC) #9
erikwright (departed)
https://chromiumcodereview.appspot.com/10905238/diff/9003/chrome/browser/extensions/app_host/app_host_main.cc File chrome/browser/extensions/app_host/app_host_main.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/9003/chrome/browser/extensions/app_host/app_host_main.cc#newcode17 chrome/browser/extensions/app_host/app_host_main.cc:17: using namespace chrome_launcher_support; It seems these are no longer ...
8 years, 3 months ago (2012-09-13 19:27:49 UTC) #10
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/4002/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode80 chrome/installer/launcher_support/chrome_launcher_support.cc:80: FilePath GetChromePathForInstallationLevel(InstallationLevel level) { On 2012/09/13 18:46:00, huangs1 wrote: ...
8 years, 3 months ago (2012-09-13 20:04:12 UTC) #11
huangs
Please take another look! It only takes 2 lines to add Version info, and I ...
8 years, 3 months ago (2012-09-13 22:25:37 UTC) #12
erikwright (departed)
Looking pretty close. http://codereview.chromium.org/10905238/diff/4005/chrome/browser/extensions/app_host/update.cc File chrome/browser/extensions/app_host/update.cc (right): http://codereview.chromium.org/10905238/diff/4005/chrome/browser/extensions/app_host/update.cc#newcode85 chrome/browser/extensions/app_host/update.cc:85: Version new_version; combine declaration and assignment ...
8 years, 3 months ago (2012-09-14 01:21:36 UTC) #13
huangs
Please check again. tl;dr on testing: I also tested the flow by the following steps: ...
8 years, 3 months ago (2012-09-14 04:03:14 UTC) #14
erikwright (departed)
LGTM once the naming misunderstanding is corrected. http://codereview.chromium.org/10905238/diff/4005/chrome/browser/extensions/app_host/update.cc File chrome/browser/extensions/app_host/update.cc (right): http://codereview.chromium.org/10905238/diff/4005/chrome/browser/extensions/app_host/update.cc#newcode96 chrome/browser/extensions/app_host/update.cc:96: if (!UpdateAppHost()) ...
8 years, 3 months ago (2012-09-14 13:21:24 UTC) #15
grt (UTC plus 2)
getting closer http://codereview.chromium.org/10905238/diff/9003/chrome/browser/extensions/app_host/update.cc File chrome/browser/extensions/app_host/update.cc (right): http://codereview.chromium.org/10905238/diff/9003/chrome/browser/extensions/app_host/update.cc#newcode24 chrome/browser/extensions/app_host/update.cc:24: // http://code.google.com/p/chromium/issues/detail?id=148538 On 2012/09/13 22:25:37, huangs1 wrote: ...
8 years, 3 months ago (2012-09-14 14:26:52 UTC) #16
erikwright (departed)
http://codereview.chromium.org/10905238/diff/5015/chrome/browser/extensions/app_host/update.cc File chrome/browser/extensions/app_host/update.cc (right): http://codereview.chromium.org/10905238/diff/5015/chrome/browser/extensions/app_host/update.cc#newcode36 chrome/browser/extensions/app_host/update.cc:36: const wchar_t kChromeBinariesAppGuid[] = On 2012/09/14 14:26:52, grt wrote: ...
8 years, 3 months ago (2012-09-14 14:30:18 UTC) #17
huangs
Please take another look. We're punting on Product Name change due to additional complexities. Filed ...
8 years, 3 months ago (2012-09-14 16:34:23 UTC) #18
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/10905238/diff/10019/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/10019/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode32 chrome/installer/launcher_support/chrome_launcher_support.cc:32: // Copied from google_chrome_distribution.cc. google_chrome_distribution.cc -> util_constants.cc https://chromiumcodereview.appspot.com/10905238/diff/10019/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode56 chrome/installer/launcher_support/chrome_launcher_support.cc:56: ...
8 years, 3 months ago (2012-09-14 17:01:41 UTC) #19
erikwright (departed)
https://chromiumcodereview.appspot.com/10905238/diff/10019/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/10019/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode56 chrome/installer/launcher_support/chrome_launcher_support.cc:56: HKEY_CURRENT_USER : HKEY_LOCAL_MACHINE; On 2012/09/14 17:01:41, grt wrote: > ...
8 years, 3 months ago (2012-09-14 17:14:15 UTC) #20
huangs
Sorry about the braces. Please check again! https://chromiumcodereview.appspot.com/10905238/diff/10019/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://chromiumcodereview.appspot.com/10905238/diff/10019/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode32 chrome/installer/launcher_support/chrome_launcher_support.cc:32: // Copied ...
8 years, 3 months ago (2012-09-14 17:17:08 UTC) #21
grt (UTC plus 2)
nice work. lgtm.
8 years, 3 months ago (2012-09-14 17:30:47 UTC) #22
huangs
brettw: PTAL for chrome/*.gyp{i,} and chrome/app/* Thanks!
8 years, 3 months ago (2012-09-14 17:39:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/10905238/6004
8 years, 3 months ago (2012-09-14 19:45:41 UTC) #24
brettw
gyp changes lgtm rubberstamp
8 years, 3 months ago (2012-09-14 19:47:33 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-14 23:52:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/10905238/6004
8 years, 3 months ago (2012-09-14 23:55:07 UTC) #27
commit-bot: I haz the power
Change committed as 156934
8 years, 3 months ago (2012-09-14 23:55:59 UTC) #28
Nico
It looks like this CL broke the commit queue for everyone. (I note that it ...
8 years, 3 months ago (2012-09-15 22:54:52 UTC) #29
erikwright (departed)
8 years, 3 months ago (2012-09-15 23:22:15 UTC) #30
I already submitted the fix.

This CL actually correctly failed the CQ, and I created a separate one that
contained the fix you submitted. But that one failed the CQ numerous times
for various flaky reasons (though it had passed enough different bots in
different CQ runs to see it was good).

So I submitted it NOTRY=True.

Unfortunately, I accidentally submitted the one that did not contain the
fix, rather than the one that did.

I submitted the fix separately today at around 11:15 PDT.

Thanks for catching this and following up. Sorry for the trouble.

-Erik

On Sat, Sep 15, 2012 at 6:54 PM, <thakis@chromium.org> wrote:

> It looks like this CL broke the commit queue for everyone. (I note that it
> was
> landed with NOTRY=true.)
>
>
https://codereview.chromium.**org/10928221/<https://codereview.chromium.org/1...
a fix attempt.
>
>
https://chromiumcodereview.**appspot.com/10905238/<https://chromiumcodereview...
>

Powered by Google App Engine
This is Rietveld 408576698