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

Issue 10963004: Fix registerProtocolHandler OS registration on Windows 8 (Closed)

Created:
8 years, 3 months ago by benwells
Modified:
8 years, 2 months ago
Reviewers:
gab, sky, grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, koz (OOO until 15th September)
Visibility:
Public.

Description

Fix registerProtocolHandler OS registration on Windows 8 On Windows 8 to register as the default handler for a protocol you need to go through a Windows shell UI flow, it cannot be done anymore via the IApplicationAssociationRegistration interface. BUG=150850 TEST=Ensure gmail and other protocol handlers can be registered successfully on Windows 7 and 8. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158612

Patch Set 1 #

Patch Set 2 : non-win compile, cleanup #

Total comments: 2

Patch Set 3 : doh! #

Total comments: 22

Patch Set 4 : Review feedback #

Total comments: 1

Patch Set 5 : Removed blank line #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -15 lines) Patch
M chrome/browser/custom_handlers/protocol_handler_registry.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 2 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 2 chunks +22 lines, -2 lines 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 3 chunks +56 lines, -12 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
benwells
sky for changes to chrome/browser/ grt for all else http://codereview.chromium.org/10963004/diff/3002/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): http://codereview.chromium.org/10963004/diff/3002/chrome/installer/util/shell_util.cc#newcode914 chrome/installer/util/shell_util.cc:914: ...
8 years, 3 months ago (2012-09-20 11:10:47 UTC) #1
grt (UTC plus 2)
http://codereview.chromium.org/10963004/diff/3002/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): http://codereview.chromium.org/10963004/diff/3002/chrome/installer/util/shell_util.cc#newcode914 chrome/installer/util/shell_util.cc:914: bool RegisterChromeAsDefaultProtocolClientForXP(BrowserDistribution* dist, On 2012/09/20 11:10:47, benwells wrote: > ...
8 years, 3 months ago (2012-09-20 13:10:12 UTC) #2
benwells
http://codereview.chromium.org/10963004/diff/12001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/10963004/diff/12001/chrome/browser/shell_integration_win.cc#newcode473 chrome/browser/shell_integration_win.cc:473: string16 wprotocol = UTF8ToUTF16(protocol); On 2012/09/20 13:10:13, grt wrote: ...
8 years, 3 months ago (2012-09-21 01:15:20 UTC) #3
benwells
On 2012/09/21 01:15:20, benwells wrote: > http://codereview.chromium.org/10963004/diff/12001/chrome/browser/shell_integration_win.cc > File chrome/browser/shell_integration_win.cc (right): > > http://codereview.chromium.org/10963004/diff/12001/chrome/browser/shell_integration_win.cc#newcode473 > ...
8 years, 3 months ago (2012-09-24 07:05:55 UTC) #4
sky
LGTM
8 years, 3 months ago (2012-09-24 14:18:21 UTC) #5
grt (UTC plus 2)
lgtm with one teeny tiny nit. http://codereview.chromium.org/10963004/diff/5005/chrome/installer/util/shell_util.h File chrome/installer/util/shell_util.h (right): http://codereview.chromium.org/10963004/diff/5005/chrome/installer/util/shell_util.h#newcode316 chrome/installer/util/shell_util.h:316: nit: only one ...
8 years, 3 months ago (2012-09-24 14:46:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10963004/16001
8 years, 2 months ago (2012-09-25 15:53:55 UTC) #7
commit-bot: I haz the power
Change committed as 158612
8 years, 2 months ago (2012-09-25 18:21:05 UTC) #8
gab
late drive-by, just noticed this code https://chromiumcodereview.appspot.com/10963004/diff/16001/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/10963004/diff/16001/chrome/installer/util/shell_util.cc#newcode1438 chrome/installer/util/shell_util.cc:1438: bool ShellUtil::ShowMakeChromeDefaultProtocolClientSystemUI( I ...
8 years, 2 months ago (2012-10-03 19:32:42 UTC) #9
benwells
8 years, 2 months ago (2012-10-08 03:23:58 UTC) #10
On 2012/10/03 19:32:42, gab wrote:
> late drive-by, just noticed this code
> 
>
https://chromiumcodereview.appspot.com/10963004/diff/16001/chrome/installer/u...
> File chrome/installer/util/shell_util.cc (right):
> 
>
https://chromiumcodereview.appspot.com/10963004/diff/16001/chrome/installer/u...
> chrome/installer/util/shell_util.cc:1438: bool
> ShellUtil::ShowMakeChromeDefaultProtocolClientSystemUI(
> I just saw this in the code, does this work from Chrome Metro? The similar
> ShowMakeChromeDefaultSystemUI() call introduced for Win8 can never be called
> from Metro as it's only ever called when Chrome is not the default browser.
This
> call however can happen to make other protocols default (and thus can happen
> from Metro).

I just checked again, and yep, it works from Metro and from deskto pmode.

Powered by Google App Engine
This is Rietveld 408576698