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

Issue 10453041: Support for interactive set-chrome-as-default in Windows. (Closed)

Created:
8 years, 7 months ago by motek.
Modified:
8 years, 6 months ago
Reviewers:
gab, sky, grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, chrome-win8-eng_google.com
Visibility:
Public.

Description

The CL adds to ShellUtil and ShellIntegration and adjusts invocations of the latter whenever necessary. R=grt@chromium.org, sky@chromium.org BUG=113326, 129232 TEST=N/A Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141172

Patch Set 1 #

Total comments: 37

Patch Set 2 : Cleaning up some random git mess + addressing reviewer's remarks. #

Patch Set 3 : A style fix #

Total comments: 37

Patch Set 4 : Addressed reviewers' remarks and took care of a missed use case. #

Patch Set 5 : Fixed for unittests + a typo or two. #

Total comments: 24

Patch Set 6 : Addressed reviewers' remarks. #

Total comments: 12

Patch Set 7 : Addressed reviewers' remarks. #

Patch Set 8 : A minor style-oops. #

Total comments: 31

Patch Set 9 : Addressed reviewers' remarks. #

Patch Set 10 : Updated a comment. #

Total comments: 4

Patch Set 11 : Updated a comment. #

Total comments: 3

Patch Set 12 : Addressed the reviewer's remark. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -54 lines) Patch
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 7 8 5 chunks +27 lines, -8 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -5 lines 0 comments Download
M chrome/browser/shell_integration_android.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration_mac.mm View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/first_run_dialog.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +38 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 8 9 4 chunks +44 lines, -11 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
motek.
8 years, 7 months ago (2012-05-25 19:16:56 UTC) #1
grt (UTC plus 2)
partial review comments as per our discussion. http://codereview.chromium.org/10453041/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): http://codereview.chromium.org/10453041/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode42 chrome/browser/custom_handlers/protocol_handler_registry.cc:42: return ShellIntegration::CHANGE_DEFAULT_NOT_ALLOWED ...
8 years, 7 months ago (2012-05-25 20:27:38 UTC) #2
motek.
Cleaned up git-related mess-up and addressed the first batch of remarks from grt@. PTAL. http://codereview.chromium.org/10453041/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc ...
8 years, 6 months ago (2012-05-28 17:40:32 UTC) #3
grt (UTC plus 2)
Round two! http://codereview.chromium.org/10453041/diff/11014/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): http://codereview.chromium.org/10453041/diff/11014/chrome/browser/shell_integration.h#newcode29 chrome/browser/shell_integration.h:29: static bool StartSetAsDefaultBrowserInteractive(); The name "StartBlaBlah" makes ...
8 years, 6 months ago (2012-05-28 20:47:02 UTC) #4
gab
Drive-by comments for shell_util changes. http://codereview.chromium.org/10453041/diff/11014/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): http://codereview.chromium.org/10453041/diff/11014/chrome/installer/util/shell_util.cc#newcode617 chrome/installer/util/shell_util.cc:617: bool LaunchApplicationAssociationDialog() { On ...
8 years, 6 months ago (2012-05-29 16:05:18 UTC) #5
motek.
https://chromiumcodereview.appspot.com/10453041/diff/11014/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://chromiumcodereview.appspot.com/10453041/diff/11014/chrome/browser/shell_integration.h#newcode29 chrome/browser/shell_integration.h:29: static bool StartSetAsDefaultBrowserInteractive(); On 2012/05/28 20:47:02, grt wrote: > ...
8 years, 6 months ago (2012-05-31 21:59:02 UTC) #6
gab
lg, see below. https://chromiumcodereview.appspot.com/10453041/diff/11014/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/10453041/diff/11014/chrome/installer/util/shell_util.cc#newcode1032 chrome/installer/util/shell_util.cc:1032: On 2012/05/31 21:59:04, motek. wrote: > ...
8 years, 6 months ago (2012-05-31 22:17:17 UTC) #7
grt (UTC plus 2)
lg https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/browser/shell_integration_mac.mm File chrome/browser/shell_integration_mac.mm (right): https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/browser/shell_integration_mac.mm#newcode47 chrome/browser/shell_integration_mac.mm:47: if (CanSetAsDefaultBrowser() != CHANGE_DEFAULT_UNATTENDED) CanSetAsDefaultBrowser -> CanSetAsDefaultProtocolClient https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/browser/ui/startup/default_browser_prompt.cc ...
8 years, 6 months ago (2012-06-01 14:36:39 UTC) #8
gab
See more comments below. Cheers, Gab https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/installer/util/shell_util.cc#newcode1046 chrome/installer/util/shell_util.cc:1046: bool elevate_if_not_admin) { ...
8 years, 6 months ago (2012-06-01 15:27:07 UTC) #9
motek.
https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/browser/shell_integration_mac.mm File chrome/browser/shell_integration_mac.mm (right): https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/browser/shell_integration_mac.mm#newcode47 chrome/browser/shell_integration_mac.mm:47: if (CanSetAsDefaultBrowser() != CHANGE_DEFAULT_UNATTENDED) On 2012/06/01 14:36:39, grt wrote: ...
8 years, 6 months ago (2012-06-01 20:50:17 UTC) #10
grt (UTC plus 2)
looks great. down to just some nits. https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/installer/util/shell_util.cc#newcode1052 chrome/installer/util/shell_util.cc:1052: ShellUtil::RegisterChromeBrowser(dist, chrome_exe, ...
8 years, 6 months ago (2012-06-04 02:41:13 UTC) #11
gab
See comments below, sorry for partly sending you in the wrong direction with IsChromeRegistered. https://chromiumcodereview.appspot.com/10453041/diff/10003/chrome/installer/util/shell_util.cc ...
8 years, 6 months ago (2012-06-05 01:48:48 UTC) #12
motek.
ptal https://chromiumcodereview.appspot.com/10453041/diff/16001/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/10453041/diff/16001/chrome/installer/util/shell_util.cc#newcode617 chrome/installer/util/shell_util.cc:617: bool LaunchSelectDefaultHttpHandlerDialog(const wchar_t* protocol) { On 2012/06/04 02:41:14, ...
8 years, 6 months ago (2012-06-06 18:30:41 UTC) #13
gab
Looks good (I'm excited about this!), see comments below. https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/browser/shell_integration.h#newcode40 chrome/browser/shell_integration.h:40: ...
8 years, 6 months ago (2012-06-06 22:47:21 UTC) #14
grt (UTC plus 2)
lgtm w/ one comment tweak. i'll leave the other things for you and gab to ...
8 years, 6 months ago (2012-06-07 02:50:36 UTC) #15
gab
Reply to Greg's comment. https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/installer/util/shell_util.cc#newcode618 chrome/installer/util/shell_util.cc:618: bool LaunchSelectDefaultProtocolHandlerDialog(const wchar_t* protocol) { ...
8 years, 6 months ago (2012-06-07 14:01:51 UTC) #16
motek.
Addressed remarks as discussed. https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/browser/shell_integration.h#newcode40 chrome/browser/shell_integration.h:40: enum DefaultSettingsChangePermission { On 2012/06/06 ...
8 years, 6 months ago (2012-06-07 14:58:50 UTC) #17
gab
LGTM, some opinions and a single nit below. Cheers! Gab https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://chromiumcodereview.appspot.com/10453041/diff/30001/chrome/browser/shell_integration_win.cc#newcode490 ...
8 years, 6 months ago (2012-06-07 15:18:54 UTC) #18
grt (UTC plus 2)
lgtm++ https://chromiumcodereview.appspot.com/10453041/diff/32003/chrome/installer/util/shell_util.h File chrome/installer/util/shell_util.h (right): https://chromiumcodereview.appspot.com/10453041/diff/32003/chrome/installer/util/shell_util.h#newcode245 chrome/installer/util/shell_util.h:245: // chrome_exe: The chrome.exe path to register as ...
8 years, 6 months ago (2012-06-07 15:30:32 UTC) #19
motek.
https://chromiumcodereview.appspot.com/10453041/diff/32003/chrome/installer/util/shell_util.h File chrome/installer/util/shell_util.h (right): https://chromiumcodereview.appspot.com/10453041/diff/32003/chrome/installer/util/shell_util.h#newcode245 chrome/installer/util/shell_util.h:245: // chrome_exe: The chrome.exe path to register as default ...
8 years, 6 months ago (2012-06-07 16:01:13 UTC) #20
sky
I only looked at chrome/browser/ui. LGTM there, assuming ShellIntegration can be accessed from the file ...
8 years, 6 months ago (2012-06-07 17:52:20 UTC) #21
motek.
Thanks. About to submit. https://chromiumcodereview.appspot.com/10453041/diff/33004/chrome/browser/ui/startup/default_browser_prompt.cc File chrome/browser/ui/startup/default_browser_prompt.cc (right): https://chromiumcodereview.appspot.com/10453041/diff/33004/chrome/browser/ui/startup/default_browser_prompt.cc#newcode37 chrome/browser/ui/startup/default_browser_prompt.cc:37: void SetChromeAsDefaultBrowser(bool interactive_flow) { On ...
8 years, 6 months ago (2012-06-07 18:25:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/motek@chromium.org/10453041/37021
8 years, 6 months ago (2012-06-07 18:27:13 UTC) #23
commit-bot: I haz the power
Try job failure for 10453041-37021 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-07 19:53:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/motek@chromium.org/10453041/37021
8 years, 6 months ago (2012-06-07 20:40:30 UTC) #25
commit-bot: I haz the power
Try job failure for 10453041-37021 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-07 22:37:26 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/motek@chromium.org/10453041/37021
8 years, 6 months ago (2012-06-08 03:52:05 UTC) #27
commit-bot: I haz the power
8 years, 6 months ago (2012-06-08 05:07:34 UTC) #28
Change committed as 141172

Powered by Google App Engine
This is Rietveld 408576698