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

Issue 11685006: [Fixit-Dec-2012] Auto-launch system-level Chrome post user-level Chrome self-destruction. (Closed)

Created:
7 years, 11 months ago by gab
Modified:
7 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org, robertshield
Visibility:
Public.

Description

[Fixit-Dec-2012] Auto-launch system-level Chrome post user-level Chrome self-destruction. Also changed self-destruct to launch setup.exe using ShellExecute instead of base::LaunchProcess to allow us to specify SEE_MASK_FLAG_LOG_USAGE to flip to the desktop as documented in "DevelopinganewexperienceDesktopBrowser". This only seems to work when ShellExecute is called from an immersive process and thus setup.exe must be launched with this flag (if it's not and setup later tries to ShellExecute the system-level Chrome with that flag, the desktop flip doesn't occur...). Also fixed InstallUtil::GetSentinelFilePath() which used to get DIR_EXE from the PathService to determine whether it was a user-level install and if so return DIR_EXE as the sentinel file path; this was wrong when called from setup.exe as DIR_EXE is not Application\ in that case, it's Application\<version>\Installer...! Thankfully this method was not used to set the sentinel (so that we don't have to keep checking for sentinel files in the wrong places); we could up until this CL however get constant false negatives when looking for sentinels with this method. This CL depends on https://codereview.chromium.org/11636031/. BUG=165048 TEST=Self-destruct with/without First Run having occured (prior to the system-level install) for the user-level Chrome; the self-destruct should occur and launch System-level Chrome with/without the First Run flow (i.e. with First Run only if the self-destructing Chrome itself hadn't undergone First Run already). On Win8, the above scenarios should work whether the user-level Chrome prefers Metro or not (if it does prefer Metro the immersive launch should flip back to the desktop for the self-destruct -- the self-destruct message dialog is still suppressed in that case however). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175249

Patch Set 1 : . #

Total comments: 36

Patch Set 2 : +grt comments #

Total comments: 4

Patch Set 3 : ++grt #

Total comments: 4

Patch Set 4 : +++grt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -13 lines) Patch
M chrome/browser/chrome_browser_main_win.cc View 1 1 chunk +16 lines, -3 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 chunks +39 lines, -1 line 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 1 chunk +16 lines, -1 line 0 comments Download
M chrome/installer/util/util_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
gab
Oh dear sir, please take a look :)! Happy holidays! Gab
7 years, 11 months ago (2012-12-27 21:46:30 UTC) #1
grt (UTC plus 2)
+robert for my comment at chrome_browser_main_win.cc:378. https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc#newcode369 chrome/browser/chrome_browser_main_win.cc:369: SHELLEXECUTEINFO sei = ...
7 years, 11 months ago (2013-01-02 17:59:33 UTC) #2
robertshield
https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc#newcode378 chrome/browser/chrome_browser_main_win.cc:378: if (!::ShellExecuteExW(&sei)) On 2013/01/02 17:59:33, grt wrote: > MSDN ...
7 years, 11 months ago (2013-01-02 19:36:06 UTC) #3
gab
Thanks, PTAL! https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc#newcode369 chrome/browser/chrome_browser_main_win.cc:369: SHELLEXECUTEINFO sei = { sizeof(sei) }; On ...
7 years, 11 months ago (2013-01-02 21:15:48 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc File chrome/browser/chrome_browser_main_win.cc (right): https://codereview.chromium.org/11685006/diff/1009/chrome/browser/chrome_browser_main_win.cc#newcode372 chrome/browser/chrome_browser_main_win.cc:372: sei.lpParameters = params.c_str(); On 2013/01/02 21:15:48, gab wrote: > ...
7 years, 11 months ago (2013-01-03 15:41:27 UTC) #5
gab
Done, PTAL. Thanks! Gab https://codereview.chromium.org/11685006/diff/11001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/11685006/diff/11001/chrome/installer/setup/setup_main.cc#newcode1026 chrome/installer/setup/setup_main.cc:1026: BrowserDistribution* dist = products[0]->distribution(); On ...
7 years, 11 months ago (2013-01-03 17:11:14 UTC) #6
grt (UTC plus 2)
lgtm w/ a nit and comment clarification https://codereview.chromium.org/11685006/diff/17001/chrome/installer/util/install_util.cc File chrome/installer/util/install_util.cc (right): https://codereview.chromium.org/11685006/diff/17001/chrome/installer/util/install_util.cc#newcode393 chrome/installer/util/install_util.cc:393: maybe_product_dir.Append(installer::kChromeExe))) { ...
7 years, 11 months ago (2013-01-03 17:48:58 UTC) #7
gab
Thanks, @brettw for OWNER approval on chrome/browser/chrome_browser_main_win.cc gab https://codereview.chromium.org/11685006/diff/17001/chrome/installer/util/install_util.cc File chrome/installer/util/install_util.cc (right): https://codereview.chromium.org/11685006/diff/17001/chrome/installer/util/install_util.cc#newcode393 chrome/installer/util/install_util.cc:393: maybe_product_dir.Append(installer::kChromeExe))) ...
7 years, 11 months ago (2013-01-03 18:39:49 UTC) #8
brettw
lgtm
7 years, 11 months ago (2013-01-04 22:04:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/11685006/16008
7 years, 11 months ago (2013-01-04 22:05:05 UTC) #10
commit-bot: I haz the power
7 years, 11 months ago (2013-01-05 01:16:12 UTC) #11
Message was sent while issue was closed.
Change committed as 175249

Powered by Google App Engine
This is Rietveld 408576698