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

Issue 6961013: Allow chrome to become the os default handler for arbitrary protocols on mac/win. (Closed)

Created:
9 years, 7 months ago by benwells
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Mike Lawther (Google), koz (OOO until 15th September)
Visibility:
Public.

Description

Allow chrome to become the os default handler for arbitrary protocols on mac/win. Note this is unused currently, but will be hooked up to navigator.registerProtocolHandler in a subsequent change. BUG=83556 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86793

Patch Set 1 #

Total comments: 64

Patch Set 2 : Responded to comments #

Total comments: 74

Patch Set 3 : More changes in response to comments. #

Total comments: 12

Patch Set 4 : More changes for comments; fix for a bug introduced with DefaultWebClientWorker refactoring #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+768 lines, -175 lines) Patch
M chrome/browser/platform_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/platform_util_common_linux.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/platform_util_mac.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/platform_util_win.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 2 chunks +118 lines, -42 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 3 1 chunk +80 lines, -35 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 2 2 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/shell_integration_mac.mm View 1 2 3 chunks +79 lines, -12 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 5 chunks +119 lines, -18 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 2 chunks +31 lines, -7 lines 1 comment Download
M chrome/installer/setup/uninstall.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 6 chunks +52 lines, -4 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 14 chunks +229 lines, -36 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
benwells
This change is so that koz's registerProtocolHandler feature can integrate into the OS. So if ...
9 years, 7 months ago (2011-05-20 05:47:36 UTC) #1
Ben Goodger (Google)
Not the right person to review this. -Ben On Thu, May 19, 2011 at 10:47 ...
9 years, 7 months ago (2011-05-20 14:49:42 UTC) #2
Evan Stade
can you send this by the trybots? +thestig for xdg utils consideration. We do have ...
9 years, 7 months ago (2011-05-20 23:16:51 UTC) #3
Lei Zhang
On 2011/05/20 23:16:51, Evan Stade wrote: > can you send this by the trybots? > ...
9 years, 7 months ago (2011-05-20 23:25:33 UTC) #4
Nico
I think Mark is an excellent reviewer for the mac side of this. Please add ...
9 years, 7 months ago (2011-05-20 23:31:49 UTC) #5
benwells
On 2011/05/20 23:25:33, Lei Zhang wrote: > What does arbitrary protocol mean on Linux? Do ...
9 years, 7 months ago (2011-05-21 00:47:51 UTC) #6
Lei Zhang
On 2011/05/21 00:47:51, benwells wrote: > On 2011/05/20 23:25:33, Lei Zhang wrote: > > What ...
9 years, 7 months ago (2011-05-21 01:29:31 UTC) #7
benwells
On 2011/05/21 01:29:31, Lei Zhang wrote: <snip> > (chatted with mdm about this) > Supporting ...
9 years, 7 months ago (2011-05-21 01:39:21 UTC) #8
Mark Mentovai
I’m also going to amplify a design question I asked in shell_util_mac.mm, because I believe ...
9 years, 7 months ago (2011-05-23 00:23:52 UTC) #9
benwells
Extracting from one of the replies: This change is for url protocols, specifically to support ...
9 years, 7 months ago (2011-05-23 06:08:36 UTC) #10
benwells
http://codereview.chromium.org/6961013/diff/1/chrome/browser/platform_util_common_linux.cc File chrome/browser/platform_util_common_linux.cc (right): http://codereview.chromium.org/6961013/diff/1/chrome/browser/platform_util_common_linux.cc#newcode159 chrome/browser/platform_util_common_linux.cc:159: bool CanSetAsDefaultMailClient() { On 2011/05/20 23:16:51, Evan Stade wrote: ...
9 years, 7 months ago (2011-05-24 06:10:38 UTC) #11
benwells
Added xiyuan as a reviewer as he has touched shell_integration_win.cc a lot. I am very ...
9 years, 7 months ago (2011-05-24 07:17:52 UTC) #12
Mark Mentovai
LGTM on all of the Mac bits and the generic cross-platform stuff. Nice work refactoring ...
9 years, 7 months ago (2011-05-24 16:28:53 UTC) #13
xiyuan
http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration.cc#newcode101 chrome/browser/shell_integration.cc:101: nit: nuke one empty line. http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): ...
9 years, 7 months ago (2011-05-24 17:55:19 UTC) #14
cpu_(ooo_6.6-7.5)
Added Robert for the changes in the installer. It is not clear to me what ...
9 years, 7 months ago (2011-05-24 19:47:21 UTC) #15
grt (UTC plus 2)
http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration_win.cc#newcode430 chrome/browser/shell_integration_win.cc:430: GetShortPathName(app_path.value().c_str(), This has a variety of failure modes. Check ...
9 years, 7 months ago (2011-05-24 20:27:53 UTC) #16
robertshield
http://codereview.chromium.org/6961013/diff/14001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): http://codereview.chromium.org/6961013/diff/14001/chrome/installer/setup/setup_main.cc#newcode841 chrome/installer/setup/setup_main.cc:841: // be used when setup.exe is launched with admin ...
9 years, 7 months ago (2011-05-24 21:33:44 UTC) #17
benwells
On 2011/05/24 19:47:21, cpu wrote: > Added Robert for the changes in the installer. > ...
9 years, 7 months ago (2011-05-25 03:40:09 UTC) #18
benwells
Hi reviewers, we're trying to get registerProtocolHandler stuff in this week. If possible, if there ...
9 years, 7 months ago (2011-05-25 08:07:19 UTC) #19
grt (UTC plus 2)
Looks nice overall. Getting really close. http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration_win.cc#newcode449 chrome/browser/shell_integration_win.cc:449: if (!FilePath::CompareEqualIgnoreCase(short_path, short_app_path)) ...
9 years, 7 months ago (2011-05-25 14:35:44 UTC) #20
robertshield
lgtm from me
9 years, 7 months ago (2011-05-25 14:55:24 UTC) #21
xiyuan
LGTM
9 years, 7 months ago (2011-05-25 16:41:04 UTC) #22
benwells
http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/6961013/diff/14001/chrome/browser/shell_integration_win.cc#newcode449 chrome/browser/shell_integration_win.cc:449: if (!FilePath::CompareEqualIgnoreCase(short_path, short_app_path)) On 2011/05/25 14:35:45, grt wrote: > ...
9 years, 7 months ago (2011-05-26 00:23:04 UTC) #23
grt (UTC plus 2)
LGTM. http://codereview.chromium.org/6961013/diff/29005/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): http://codereview.chromium.org/6961013/diff/29005/chrome/installer/setup/setup_main.cc#newcode851 chrome/installer/setup/setup_main.cc:851: // ShellUtil::kPotentialProtocolAssociations. Is registration for a protocol not ...
9 years, 7 months ago (2011-05-26 02:42:53 UTC) #24
benwells
On 2011/05/26 02:42:53, grt wrote: > LGTM. > > http://codereview.chromium.org/6961013/diff/29005/chrome/installer/setup/setup_main.cc > File chrome/installer/setup/setup_main.cc (right): > ...
9 years, 7 months ago (2011-05-26 04:14:45 UTC) #25
Noel Gordon
9 years, 7 months ago (2011-05-26 04:23:19 UTC) #26
LGTM. Right let's push to dev.

Powered by Google App Engine
This is Rietveld 408576698