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

Issue 10542031: Suffix Chrome's appid on user-level installs (Closed)

Created:
8 years, 6 months ago by gab
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, grt+watch_chromium.org, jeremya+watch_chromium.org, mihaip-chromium-reviews_chromium.org, chrome-win8-eng_google.com
Visibility:
Public.

Description

Suffix Chrome's appid on user-level installs ShellIntegration::GetAppId() --> ShellIntegration::GetProfileAppId() for clarity (i.e. having two functions called "GetAppId" is confusing imo). Patch From Gabriel Charette <gab@chromium.org>; BUG=125362, 133173 TEST=Make sure 125362 doesn't repro. http://goo.gl/ZZ7gE ShellIntegrationTest.GetAppModelIdForProfileTest ShellUtilTest.BuildAppModelId* SessionRestoreTest.RestoreAfterClosingTabbedBrowserWithAppAndLaunching AppModeTest.EnableAppModeTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=142909

Patch Set 1 #

Patch Set 2 : comment clarification #

Patch Set 3 : fix install logic #

Patch Set 4 : rebase on hkcu CL #

Patch Set 5 : always suffix appid #

Patch Set 6 : rebase on hkcu@appname@suffix@r142136 #

Total comments: 41

Patch Set 7 : rebase on hkcu@appname@suffix@r142211 #

Patch Set 8 : remove install logic order changes and modify naming/comments #

Total comments: 4

Patch Set 9 : indentation nit #

Patch Set 10 : rebased on hkcu again... #

Total comments: 2

Patch Set 11 : reorder includes #

Patch Set 12 : fix shell integration test #

Total comments: 1

Patch Set 13 : elide appid to max 64 chars #

Patch Set 14 : ShellUtil::ConstructAppModelId() and some renaming #

Total comments: 16

Patch Set 15 : add tests for ShellUtil::ConstructAppModelId #

Patch Set 16 : addressed gregs comments #

Total comments: 2

Patch Set 17 : rebase to r142814 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -95 lines) Patch
M chrome/browser/jumplist_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -9 lines 0 comments Download
M chrome/browser/shell_integration_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -8 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +30 lines, -19 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/shell_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/web_applications/web_app_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/web_applications/web_app_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -1 line 0 comments Download
M chrome/installer/util/browser_distribution.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/installer/util/browser_distribution.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/chromium_binaries_distribution.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/chromium_binaries_distribution.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution_dummy.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_sxs_distribution.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_sxs_distribution.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +65 lines, -8 lines 0 comments Download
M chrome/installer/util/shell_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +79 lines, -34 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
gab
Hey greg, so this is the last of the series for http://goo.gl/jxDSU :)! Right now ...
8 years, 6 months ago (2012-06-06 18:08:09 UTC) #1
gab
I have now based this CL on top of the HKCU CL. This will make ...
8 years, 6 months ago (2012-06-13 20:22:07 UTC) #2
gab
Ready for review! The final design decision was to always suffix the appid (which prevents ...
8 years, 6 months ago (2012-06-14 16:06:21 UTC) #3
grt (UTC plus 2)
looks good. robert: please give us your thoughts on my comment in install.cc carlos: please ...
8 years, 6 months ago (2012-06-15 03:03:03 UTC) #4
robertshield
https://chromiumcodereview.appspot.com/10542031/diff/11003/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://chromiumcodereview.appspot.com/10542031/diff/11003/chrome/installer/setup/install.cc#oldcode472 chrome/installer/setup/install.cc:472: prefs.GetBool(master_preferences::kDoNotCreateShortcuts, On 2012/06/15 03:03:03, grt wrote: > robert added ...
8 years, 6 months ago (2012-06-15 03:27:59 UTC) #5
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/10542031/diff/11003/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://chromiumcodereview.appspot.com/10542031/diff/11003/chrome/installer/setup/install.cc#oldcode472 chrome/installer/setup/install.cc:472: prefs.GetBool(master_preferences::kDoNotCreateShortcuts, On 2012/06/15 03:27:59, robertshield wrote: > On 2012/06/15 ...
8 years, 6 months ago (2012-06-15 03:33:51 UTC) #6
robertshield
On 2012/06/15 03:33:51, grt wrote: > https://chromiumcodereview.appspot.com/10542031/diff/11003/chrome/installer/setup/install.cc > File chrome/installer/setup/install.cc (left): > > https://chromiumcodereview.appspot.com/10542031/diff/11003/chrome/installer/setup/install.cc#oldcode472 > ...
8 years, 6 months ago (2012-06-15 04:25:26 UTC) #7
gab
Comments addressed, see below. Cheers, Gab http://codereview.chromium.org/10542031/diff/11003/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): http://codereview.chromium.org/10542031/diff/11003/chrome/browser/shell_integration.h#newcode126 chrome/browser/shell_integration.h:126: // Generates Win7 ...
8 years, 6 months ago (2012-06-15 19:01:04 UTC) #8
grt (UTC plus 2)
lgtm w/ a nit and a question. please check with carlos about setting the id ...
8 years, 6 months ago (2012-06-15 19:24:07 UTC) #9
gab
Done. http://codereview.chromium.org/10542031/diff/17001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10542031/diff/17001/chrome/browser/ui/browser.cc#newcode538 chrome/browser/ui/browser.cc:538: profile_->GetPath()) : On 2012/06/15 19:24:07, grt wrote: > ...
8 years, 6 months ago (2012-06-15 19:29:59 UTC) #10
gab
sky: OWNER approval for chrome\browser\ui side-effects... Thanks, Gab
8 years, 6 months ago (2012-06-15 19:31:21 UTC) #11
gab
Made a separate CL to address the comment below. http://codereview.chromium.org/10542031/diff/11003/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10542031/diff/11003/chrome/browser/ui/browser.cc#newcode535 chrome/browser/ui/browser.cc:535: ...
8 years, 6 months ago (2012-06-15 20:28:24 UTC) #12
sky
I'm not familiar enough with this code to do the review justice. http://codereview.chromium.org/10542031/diff/27001/chrome/browser/ui/web_applications/web_app_ui.cc File chrome/browser/ui/web_applications/web_app_ui.cc ...
8 years, 6 months ago (2012-06-15 21:23:09 UTC) #13
gab
Done. http://codereview.chromium.org/10542031/diff/27001/chrome/browser/ui/web_applications/web_app_ui.cc File chrome/browser/ui/web_applications/web_app_ui.cc (right): http://codereview.chromium.org/10542031/diff/27001/chrome/browser/ui/web_applications/web_app_ui.cc#newcode12 chrome/browser/ui/web_applications/web_app_ui.cc:12: #include "base/string16.h" On 2012/06/15 21:23:09, sky wrote: > ...
8 years, 6 months ago (2012-06-15 21:29:25 UTC) #14
sky
chrome/browser/ui LGTM
8 years, 6 months ago (2012-06-15 21:30:59 UTC) #15
gab
@grt: awaiting your final LGTM (given the first one is getting old) Cheers, Gab
8 years, 6 months ago (2012-06-15 21:32:12 UTC) #16
gab
On 2012/06/15 21:32:12, gab wrote: > @grt: awaiting your final LGTM (given the first one ...
8 years, 6 months ago (2012-06-16 00:56:07 UTC) #17
gab
Fixed compilation issues with the shell integration tests (see comment in the shell_integration_unittests.cc). http://codereview.chromium.org/10542031/diff/21008/chrome/browser/shell_integration_unittest.cc File ...
8 years, 6 months ago (2012-06-18 03:15:25 UTC) #18
gab
On 2012/06/18 03:15:25, gab wrote: > Fixed compilation issues with the shell integration tests (see ...
8 years, 6 months ago (2012-06-18 03:20:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/10542031/21008
8 years, 6 months ago (2012-06-18 03:21:03 UTC) #20
commit-bot: I haz the power
Try job failure for 10542031-21008 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 6 months ago (2012-06-18 05:54:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/10542031/21008
8 years, 6 months ago (2012-06-18 12:36:29 UTC) #22
grt (UTC plus 2)
still lgtm (good choice with regards to the unittest)
8 years, 6 months ago (2012-06-18 13:02:53 UTC) #23
commit-bot: I haz the power
Try job failure for 10542031-21008 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 6 months ago (2012-06-18 14:34:20 UTC) #24
gab
Fixed browser tests: under some circumstances with scoped_temp_dir the appid generated would sometimes be longer ...
8 years, 6 months ago (2012-06-18 16:01:21 UTC) #25
gab
After a discussion offline, we decided it would be better if all truncating/compositing logic for ...
8 years, 6 months ago (2012-06-18 18:57:25 UTC) #26
gab
On 2012/06/18 18:57:25, gab wrote: > After a discussion offline, we decided it would be ...
8 years, 6 months ago (2012-06-18 18:58:46 UTC) #27
gab
On 2012/06/18 18:58:46, gab wrote: > On 2012/06/18 18:57:25, gab wrote: > > After a ...
8 years, 6 months ago (2012-06-18 19:44:53 UTC) #28
grt (UTC plus 2)
i liked the old method names in ShellIntegration better. i don't see a benefit to ...
8 years, 6 months ago (2012-06-18 19:45:07 UTC) #29
grt (UTC plus 2)
On 2012/06/18 19:45:07, grt wrote: > i liked the old method names in ShellIntegration better. ...
8 years, 6 months ago (2012-06-18 19:59:33 UTC) #30
gab
Comments addressed. I added the unit tests that are relevant to this to the CL ...
8 years, 6 months ago (2012-06-18 21:52:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/10542031/35001
8 years, 6 months ago (2012-06-18 22:29:03 UTC) #32
grt (UTC plus 2)
lgtm w/ a cursory look. https://chromiumcodereview.appspot.com/10542031/diff/35001/chrome/installer/util/shell_util_unittest.cc File chrome/installer/util/shell_util_unittest.cc (right): https://chromiumcodereview.appspot.com/10542031/diff/35001/chrome/installer/util/shell_util_unittest.cc#newcode404 chrome/installer/util/shell_util_unittest.cc:404: ASSERT_EQ(L"Chrome.a_user_wer_64_characters.A_crazy_profilethat_is_possible", On 2012/06/18 21:52:43, ...
8 years, 6 months ago (2012-06-18 22:48:21 UTC) #33
commit-bot: I haz the power
Try job failure for 10542031-35001 (retry) on win_rel for step "chrome_frame_net_tests". It's a second try, ...
8 years, 6 months ago (2012-06-19 03:06:51 UTC) #34
commit-bot: I haz the power
8 years, 6 months ago (2012-06-19 03:12:16 UTC) #35

Powered by Google App Engine
This is Rietveld 408576698