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

Issue 399045: Set prop app id for chromium/application shortcut. (Closed)

Created:
11 years, 1 month ago by xiyuan
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Set prop app id for chromium/application shortcut. This is a follow up change after andrew's patch for win7 shortcut to properly set app id for chromium/application shortcut. - Move PKEY_AppUserModel_ID and code to set it from app/win_util.cc to base/win_util.cc as SetAppIdForPropertyStore to share with file_util shortcut code; - Add an app_id args to file_util's CreateShortcutLink and UpdateShortcutLink; - Update code that calls the above two function in installer and UserDataManager so that the chromium shortcuts are created with proper app id (except the uninstall shortcut which is not tagged with any app id). - Move ComputeApplicationNameFromURL from Browser to web_app namespace and use it as app id for application shortcut. This makes pinned shortcut and browser window use the same app id and Win7 correctly groups them; - Rename ComputeApplicationNameFromURL to GenerateApplicationNameFromURL per Ben's comments; - Add a DCHECK in SetAppIdForPropertyStore to ensure app id is less than 128 chars and contains no space per msdn; - Change default app id from IDS_PRODUCT_NAME to chrome::kBrowserAppName BUG=28104 TEST=On Win7, pinned shortcut should no longer be separated from running instance of chrome for both chrome and web application. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32508

Patch Set 1 #

Total comments: 19

Patch Set 2 : for hbono's comments #

Patch Set 3 : tag chrome window with chrome::kBrowserAppName #

Total comments: 6

Patch Set 4 : more for hbono #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -119 lines) Patch
M app/win_util.cc View 4 chunks +2 lines, -12 lines 0 comments Download
M base/file_util.h View 1 chunk +5 lines, -5 lines 0 comments Download
M base/file_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/file_util_win.cc View 1 2 3 5 chunks +49 lines, -80 lines 0 comments Download
M base/win_util.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M base/win_util.cc View 1 2 3 2 chunks +27 lines, -0 lines 2 comments Download
M chrome/browser/browser.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 3 5 chunks +4 lines, -12 lines 0 comments Download
M chrome/browser/user_data_manager.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/web_applications/web_app.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 2 chunks +10 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.h View 1 chunk +3 lines, -0 lines 2 comments Download
M chrome/common/chrome_constants.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
xiyuan
11 years, 1 month ago (2009-11-17 22:54:18 UTC) #1
Ben Goodger (Google)
I'll let brg/hbono drive the review here, I just have one terminology comment: http://codereview.chromium.org/399045/diff/1/12 File ...
11 years, 1 month ago (2009-11-17 23:15:23 UTC) #2
xiyuan
Wait for brg and hbono's comments now. http://codereview.chromium.org/399045/diff/1/12 File chrome/browser/web_applications/web_app.h (right): http://codereview.chromium.org/399045/diff/1/12#newcode17 Line 17: std::wstring ...
11 years, 1 month ago (2009-11-18 00:35:56 UTC) #3
brg
LGTM Thanks for cleaning up the COM usage.
11 years, 1 month ago (2009-11-18 00:39:19 UTC) #4
Hironori Bono
Thank you for your hard work. Even though this change mostly looks good, is it ...
11 years, 1 month ago (2009-11-18 02:08:18 UTC) #5
xiyuan
Good call for the app id format I changed the default app id from IDS_PRODUCT_NAME ...
11 years, 1 month ago (2009-11-18 06:31:21 UTC) #6
Hironori Bono
http://codereview.chromium.org/399045/diff/1/6 File base/win_util.cc (right): http://codereview.chromium.org/399045/diff/1/6#newcode24 Line 24: EXTERN_C const PROPERTYKEY DECLSPEC_SELECTANY PKEY_AppUserModel_ID = On 2009/11/18 ...
11 years, 1 month ago (2009-11-18 08:49:22 UTC) #7
xiyuan
http://codereview.chromium.org/399045/diff/1/6 File base/win_util.cc (right): http://codereview.chromium.org/399045/diff/1/6#newcode24 Line 24: EXTERN_C const PROPERTYKEY DECLSPEC_SELECTANY PKEY_AppUserModel_ID = On 2009/11/18 ...
11 years, 1 month ago (2009-11-18 22:49:58 UTC) #8
Hironori Bono
LGTM with a couple of nits. Thank you again for your hard work. Regards, Hironori ...
11 years, 1 month ago (2009-11-19 04:35:46 UTC) #9
xiyuan
All done. Will submit after try success. Thanks for reviewing. :) http://codereview.chromium.org/399045/diff/24/1034 File base/win_util.cc (right): ...
11 years, 1 month ago (2009-11-19 07:30:18 UTC) #10
daniel.fulda
Hello! When will this be updated in Google Chrome? On 2009/11/19 07:30:18, xiyuan wrote: > ...
10 years, 11 months ago (2010-01-26 19:13:39 UTC) #11
Hironori Bono
Greetings, Thank you for your question. As far as I know, this change has been ...
10 years, 11 months ago (2010-01-27 02:17:14 UTC) #12
xiyuan
10 years, 11 months ago (2010-01-27 17:55:18 UTC) #13
As far as I know that this CL does not make into 4.0 release. :( It should be
included in 4.1.

Powered by Google App Engine
This is Rietveld 408576698