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

Issue 1586143002: Cleanup dual_mode handling in ShellIntegrationWin after Metro removal. (Closed)

Created:
4 years, 11 months ago by gab
Modified:
4 years, 11 months ago
Reviewers:
sky, grt (UTC plus 2)
CC:
chromium-reviews, scottmg
Base URL:
https://chromium.googlesource.com/chromium/src.git@a1_cleanup_scottmg
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup dual_mode handling in ShellIntegrationWin after Metro removal. Follow-up to https://codereview.chromium.org/1581473002 Per MSDN documentation it appears that we have no choice but to set the dual_mode property to false when it is already set: "Removing a property values from a property store is not supported and could lead to unexpected results." (though this comes right after the documentation saying removal is one of the three use cases of IPropertyStore::SetValue()..!) https://msdn.microsoft.com/en-us/library/windows/desktop/bb761475(v=vs.85).aspx Can be cleaned up further as a follow-up by getting rid of the dual_mode field on ShortcutProperties altogether but that requires more thought. Also, adding TODO for self to remove shortcut migration from the startup path now that we have a mean to do this in setup for per-user shortcuts via Active Setup. BUG=558054, 577697 TBR=sky@chromium.org Committed: https://crrev.com/38d242d4d7da0d7cfbf0841b53f57803f7f1156c Cr-Commit-Position: refs/heads/master@{#369527}

Patch Set 1 #

Total comments: 6

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -53 lines) Patch
M chrome/browser/shell_integration.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 3 chunks +12 lines, -25 lines 0 comments Download
M chrome/browser/shell_integration_win_unittest.cc View 1 5 chunks +15 lines, -24 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (13 generated)
gab
Greg PTAL, thanks!
4 years, 11 months ago (2016-01-14 16:33:13 UTC) #5
grt (UTC plus 2)
lgtm w/ a few comment nits. nice! https://codereview.chromium.org/1586143002/diff/20001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1586143002/diff/20001/chrome/browser/shell_integration.h#newcode163 chrome/browser/shell_integration.h:163: // have ...
4 years, 11 months ago (2016-01-14 16:40:51 UTC) #6
gab
Thanks, done. https://codereview.chromium.org/1586143002/diff/20001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1586143002/diff/20001/chrome/browser/shell_integration.h#newcode163 chrome/browser/shell_integration.h:163: // have the appropriate AppUserModelId. Also clear ...
4 years, 11 months ago (2016-01-14 17:09:29 UTC) #7
commit-bot: I haz the power
This CL has an open dependency (Issue 1573243010 Patch 20001). Please resolve the dependency and ...
4 years, 11 months ago (2016-01-14 17:09:49 UTC) #11
gab
TBR sky for shell_integration.h (#ifdef(OS_WIN) only change and OWNER approval already in for the _win.cc ...
4 years, 11 months ago (2016-01-14 17:16:13 UTC) #14
scottmg
Thanks Gab.
4 years, 11 months ago (2016-01-14 18:14:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1586143002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1586143002/40001
4 years, 11 months ago (2016-01-14 19:38:52 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 11 months ago (2016-01-14 20:38:21 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 20:39:28 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/38d242d4d7da0d7cfbf0841b53f57803f7f1156c
Cr-Commit-Position: refs/heads/master@{#369527}

Powered by Google App Engine
This is Rietveld 408576698