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

Issue 14027008: Migrate app_host.exe shortcuts to chrome.exe shortcuts (Closed)

Created:
7 years, 8 months ago by calamity
Modified:
7 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Migrate app_host.exe shortcuts to chrome.exe shortcuts ShellIntegration::MigrateChromiumShortcuts() now looks for app_host.exe shortcuts and converts them to chrome.exe. While I was there, I also added the "User Pinned/ImplicitAppShortcuts" directory to the migration search paths and made the function generate the correct app ids when given shortcuts with the --profile-directory flag that had previously been messing up groupings on the taskbar. Tests were added. BUG=233434

Patch Set 1 : #

Total comments: 8

Patch Set 2 : split migration into two parts #

Patch Set 3 : rework #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -68 lines) Patch
M base/base_paths_win.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/base_paths_win.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 2 chunks +15 lines, -0 lines 1 comment Download
M chrome/browser/shell_integration_win.cc View 1 2 7 chunks +132 lines, -32 lines 4 comments Download
M chrome/browser/shell_integration_win_unittest.cc View 1 2 5 chunks +110 lines, -35 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
calamity
7 years, 8 months ago (2013-04-18 01:11:27 UTC) #1
koz (OOO until 15th September)
lgtm Nice work! https://chromiumcodereview.appspot.com/14027008/diff/2001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://chromiumcodereview.appspot.com/14027008/diff/2001/chrome/browser/shell_integration_win.cc#newcode95 chrome/browser/shell_integration_win.cc:95: if (command_line.HasSwitch(switches::kUserDataDir)) { I think this ...
7 years, 8 months ago (2013-04-18 02:06:08 UTC) #2
koz (OOO until 15th September)
https://codereview.chromium.org/14027008/diff/2001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/14027008/diff/2001/chrome/browser/shell_integration.h#newcode180 chrome/browser/shell_integration.h:180: // This method should not be called prior to ...
7 years, 8 months ago (2013-04-18 02:16:32 UTC) #3
calamity
+ben for OWNERS Could you please review all these files. The main review target is ...
7 years, 8 months ago (2013-04-18 08:24:34 UTC) #4
Ben Goodger (Google)
You need a base owner for the base bits. browser lgtm.
7 years, 8 months ago (2013-04-18 18:16:50 UTC) #5
huangs
Adding gab@ for shortcut details. Please update BUG=. My main concern is, why is shortcut ...
7 years, 8 months ago (2013-04-19 15:21:28 UTC) #6
gab
7 years, 8 months ago (2013-04-19 18:34:50 UTC) #7
High-level comments, will review further once addressed:

As Sam said, the app_host.exe -> chrome.exe migration should be done by the
installer, not Chrome.

Also, please split that change from the appid change, they're unrelated imo.

Thanks,
Gab

PS: Feel free to ping me for further insights on shortcuts, etc.

https://chromiumcodereview.appspot.com/14027008/diff/17001/chrome/browser/she...
File chrome/browser/shell_integration.h (right):

https://chromiumcodereview.appspot.com/14027008/diff/17001/chrome/browser/she...
chrome/browser/shell_integration.h:192: static void MigrateAppHostShortcuts();
This shouldn't be done in Chrome, instead it should be done in the installer;
where the shortcuts are created. The installer already has all the functionality
to update existing shortcut properties.

Furthermore Chrome (the product not the binaries) might not be installed even if
the App Launcher is installed.

https://chromiumcodereview.appspot.com/14027008/diff/17001/chrome/browser/she...
File chrome/browser/shell_integration_win.cc (right):

https://chromiumcodereview.appspot.com/14027008/diff/17001/chrome/browser/she...
chrome/browser/shell_integration_win.cc:420: BrowserThread::PostTask(
No need for a second task here given this is already called from a callback on
the file thread in your new implementation.

https://chromiumcodereview.appspot.com/14027008/diff/17001/chrome/browser/she...
chrome/browser/shell_integration_win.cc:571: // it is fixed to work with
FilePaths with spaces.
PS: This has been fixed, you can now use
InstallUtil::ProgramCompare::EvaluatePath() to compare paths (much better than
string comparison).

Thanks :)

Powered by Google App Engine
This is Rietveld 408576698