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

Issue 1349163008: Setting chrome as the default browser is now fixed on Windows 10 (Closed)

Created:
5 years, 3 months ago by Patrick Monette
Modified:
5 years, 1 month ago
CC:
chromium-reviews, vabr+watchlist_chromium.org, asvitkine+watch_chromium.org, hodie
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Setting chrome as the default browser is now fixed on Windows 10 BUG=531649 Committed: https://crrev.com/f89ac7c739d5b0ba039af8cabac76a74ff3b2b54 Cr-Commit-Position: refs/heads/master@{#352526}

Patch Set 1 #

Total comments: 29

Patch Set 2 : asvitkine comments #1 #

Total comments: 15

Patch Set 3 : Now using OpenWith.exe to open the http url #

Total comments: 25

Patch Set 4 : grt comments #1 #

Total comments: 53

Patch Set 5 : Rebasing #

Patch Set 6 : Test for default browser callback + comments #

Total comments: 87

Patch Set 7 : Responding to comments #

Total comments: 2

Patch Set 8 : Report early success when already default browser #

Total comments: 10

Patch Set 9 : Added detailed metrics #

Total comments: 12

Patch Set 10 : More comments #

Patch Set 11 : Rebasing #

Total comments: 2

Patch Set 12 : Removed unused header #

Total comments: 2

Patch Set 13 : Modified a comment #

Patch Set 14 : Fixed compilation for non-Windows build #

Patch Set 15 : Fix compilation again #

Patch Set 16 : Fix compilation again #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+654 lines, -128 lines) Patch
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -7 lines 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 +12 lines, -3 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +116 lines, -47 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +192 lines, -65 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +128 lines, -5 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +51 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +68 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +52 lines, -0 lines 2 comments Download

Messages

Total messages: 74 (24 generated)
Patrick Monette
asvitkine@chromium.org: Please review changes in histograms.xml pkasting@chromium.org: Please review changes in startup_browser_creator.h .cc sky@chromium.org: Please ...
5 years, 3 months ago (2015-09-22 00:55:29 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration_win.cc#newcode696 chrome/browser/shell_integration_win.cc:696: if (succeeded) { Nit: No {}'s for 1-line bodies. ...
5 years, 2 months ago (2015-09-22 15:20:44 UTC) #3
sky
+ananta
5 years, 2 months ago (2015-09-22 16:44:52 UTC) #5
Patrick Monette
Responded to Alexei. Please take another look. https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration_win.cc#newcode696 chrome/browser/shell_integration_win.cc:696: if (succeeded) ...
5 years, 2 months ago (2015-09-22 17:11:09 UTC) #6
Patrick Monette
Responded to Alexei. Please take another look. https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration_win.cc#newcode696 chrome/browser/shell_integration_win.cc:696: if (succeeded) ...
5 years, 2 months ago (2015-09-22 17:11:09 UTC) #7
grt (UTC plus 2)
fyi to OWNERS: i am doing a top-to-bottom review of this. feedback coming later today. ...
5 years, 2 months ago (2015-09-22 18:21:48 UTC) #9
grt (UTC plus 2)
On 2015/09/22 18:21:48, grt wrote: > fyi to OWNERS: i am doing a top-to-bottom review ...
5 years, 2 months ago (2015-09-22 18:22:11 UTC) #10
grt (UTC plus 2)
https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/1/chrome/browser/shell_integration.h#newcode264 chrome/browser/shell_integration.h:264: #if defined(OS_WIN) On 2015/09/22 18:21:47, grt wrote: > move ...
5 years, 2 months ago (2015-09-22 19:17:48 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/1349163008/diff/40001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/40001/chrome/browser/shell_integration.h#newcode266 chrome/browser/shell_integration.h:266: scoped_ptr<base::OneShotTimer<DefaultWebClientWorker>> async_timer_; FYI: it looks like OneShotTimer is getting ...
5 years, 2 months ago (2015-09-22 19:19:57 UTC) #12
Peter Kasting
Why add this whole concept of a generic URL-to-callback map so we can maybe add ...
5 years, 2 months ago (2015-09-22 22:00:42 UTC) #13
Patrick Monette
Addressed grt's comments. Please take another look. pkasting@: I removed the general Url to callback ...
5 years, 2 months ago (2015-09-23 22:40:45 UTC) #15
Peter Kasting
https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode113 chrome/browser/ui/startup/startup_browser_creator.cc:113: base::CancelableClosure async_set_as_default_filter_callback; The Google style guide bans the use ...
5 years, 2 months ago (2015-09-23 23:01:39 UTC) #16
grt (UTC plus 2)
looking good. more comments. https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/shell_integration.cc#newcode51 chrome/browser/shell_integration.cc:51: // Set as default asynchronous ...
5 years, 2 months ago (2015-09-24 18:24:12 UTC) #17
grt (UTC plus 2)
pkasting: question for you. https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode110 chrome/browser/ui/startup/startup_browser_creator.cc:110: L"https://support.google.com/chrome?p=default_browser"; PK: it seems like ...
5 years, 2 months ago (2015-09-24 18:47:06 UTC) #18
Peter Kasting
https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode110 chrome/browser/ui/startup/startup_browser_creator.cc:110: L"https://support.google.com/chrome?p=default_browser"; On 2015/09/24 18:47:06, grt wrote: > PK: it ...
5 years, 2 months ago (2015-09-24 20:34:10 UTC) #19
grt (UTC plus 2)
https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode113 chrome/browser/ui/startup/startup_browser_creator.cc:113: base::CancelableClosure async_set_as_default_filter_callback; On 2015/09/24 20:34:10, Peter Kasting wrote: > ...
5 years, 2 months ago (2015-09-24 20:39:24 UTC) #20
Peter Kasting
On 2015/09/24 20:39:24, grt wrote: > https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc > File chrome/browser/ui/startup/startup_browser_creator.cc (right): > > https://codereview.chromium.org/1349163008/diff/80001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode113 > ...
5 years, 2 months ago (2015-09-24 20:53:22 UTC) #21
grt (UTC plus 2)
On 2015/09/24 20:53:22, Peter Kasting wrote: > On 2015/09/24 20:39:24, grt wrote: > > > ...
5 years, 2 months ago (2015-09-24 21:32:09 UTC) #22
Patrick Monette
pkasting@: There should be no leak of g_default_browser_callback as its always cleared in the worker's ...
5 years, 2 months ago (2015-09-25 20:06:25 UTC) #25
Peter Kasting
LGTM with a raft of nits, mostly comment changes https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc File chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc (right): https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc#newcode230 chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc:230: ...
5 years, 2 months ago (2015-09-25 20:52:27 UTC) #26
grt (UTC plus 2)
https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h#newcode14 chrome/browser/shell_integration.h:14: #include "base/timer/timer.h" nit: remove this and instead forward decl ...
5 years, 2 months ago (2015-09-28 14:31:05 UTC) #27
Alexei Svitkine (slow)
histograms lgtm
5 years, 2 months ago (2015-09-28 18:23:41 UTC) #28
Peter Kasting
https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h#newcode279 chrome/browser/shell_integration.h:279: virtual void InitializeSetAsDefault() {} On 2015/09/28 14:31:04, grt wrote: ...
5 years, 2 months ago (2015-09-28 20:40:48 UTC) #29
Patrick Monette
Responding to comments. Greg take another look please. ananta@ Can you review changes in shell_integration.h, ...
5 years, 2 months ago (2015-09-28 23:46:38 UTC) #30
Peter Kasting
https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h#newcode272 chrome/browser/shell_integration.h:272: // Sets Chrome as the default web client. Always ...
5 years, 2 months ago (2015-09-28 23:57:49 UTC) #32
rkaplow
https://codereview.chromium.org/1349163008/diff/200001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1349163008/diff/200001/chrome/browser/shell_integration_win.cc#newcode277 chrome/browser/shell_integration_win.cc:277: // UMA reports the correct group. On 2015/09/28 23:57:49, ...
5 years, 2 months ago (2015-09-29 14:20:53 UTC) #34
Patrick Monette
https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/160001/chrome/browser/shell_integration.h#newcode272 chrome/browser/shell_integration.h:272: // Sets Chrome as the default web client. Always ...
5 years, 2 months ago (2015-09-29 14:44:18 UTC) #35
Peter Kasting
Thanks for the details, LGTM (again)
5 years, 2 months ago (2015-09-29 16:55:39 UTC) #37
grt (UTC plus 2)
https://codereview.chromium.org/1349163008/diff/240001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1349163008/diff/240001/chrome/browser/shell_integration.cc#newcode180 chrome/browser/shell_integration.cc:180: if (set_as_default_in_progress_) in looking at how set_as_default_in_progress_ is used, ...
5 years, 2 months ago (2015-09-30 17:22:33 UTC) #38
Patrick Monette
grt@ Please take another look! https://codereview.chromium.org/1349163008/diff/240001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1349163008/diff/240001/chrome/browser/shell_integration.cc#newcode180 chrome/browser/shell_integration.cc:180: if (set_as_default_in_progress_) On 2015/09/30 ...
5 years, 2 months ago (2015-10-01 21:12:51 UTC) #40
grt (UTC plus 2)
final comments (i swear) https://codereview.chromium.org/1349163008/diff/280001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1349163008/diff/280001/chrome/browser/shell_integration.cc#newcode183 chrome/browser/shell_integration.cc:183: FinalizeSetAsDefault(); set_as_default_initialized_ = false; so ...
5 years, 2 months ago (2015-10-02 17:39:18 UTC) #41
Patrick Monette
https://codereview.chromium.org/1349163008/diff/280001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1349163008/diff/280001/chrome/browser/shell_integration.cc#newcode183 chrome/browser/shell_integration.cc:183: FinalizeSetAsDefault(); On 2015/10/02 17:39:18, grt (very slow until Oct ...
5 years, 2 months ago (2015-10-02 20:15:14 UTC) #43
grt (UTC plus 2)
lgtm https://codereview.chromium.org/1349163008/diff/340001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1349163008/diff/340001/chrome/browser/shell_integration.cc#newcode13 chrome/browser/shell_integration.cc:13: #include "base/strings/stringprintf.h" unused?
5 years, 2 months ago (2015-10-02 23:13:56 UTC) #44
grt (UTC plus 2)
On 2015/09/28 18:23:41, Alexei Svitkine wrote: > histograms lgtm PTAL to changes to histograms since ...
5 years, 2 months ago (2015-10-03 19:52:11 UTC) #45
Alexei Svitkine (slow)
lgtm
5 years, 2 months ago (2015-10-05 15:22:00 UTC) #46
Patrick Monette
brettw@. I need owners lgtm, can you take a look please? Thanks! https://codereview.chromium.org/1349163008/diff/340001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc ...
5 years, 2 months ago (2015-10-05 15:54:32 UTC) #48
brettw
lgtm https://codereview.chromium.org/1349163008/diff/360001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/360001/chrome/browser/shell_integration.h#newcode59 chrome/browser/shell_integration.h:59: // This is the most common case where ...
5 years, 2 months ago (2015-10-05 19:58:02 UTC) #49
brettw
Also CL description: I assume you mean "New prompts..."
5 years, 2 months ago (2015-10-05 19:59:10 UTC) #50
Patrick Monette
I changed the CL title to add clarity https://codereview.chromium.org/1349163008/diff/360001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1349163008/diff/360001/chrome/browser/shell_integration.h#newcode59 chrome/browser/shell_integration.h:59: // ...
5 years, 2 months ago (2015-10-05 20:10:09 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349163008/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349163008/380001
5 years, 2 months ago (2015-10-05 20:11:23 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/105830) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-10-05 20:28:54 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349163008/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349163008/400001
5 years, 2 months ago (2015-10-05 20:58:53 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/122532) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-05 21:14:23 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349163008/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349163008/420001
5 years, 2 months ago (2015-10-05 21:43:04 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/111978) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-10-05 22:06:36 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349163008/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349163008/440001
5 years, 2 months ago (2015-10-05 22:32:40 UTC) #69
commit-bot: I haz the power
Committed patchset #16 (id:440001)
5 years, 2 months ago (2015-10-06 03:22:10 UTC) #70
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/f89ac7c739d5b0ba039af8cabac76a74ff3b2b54 Cr-Commit-Position: refs/heads/master@{#352526}
5 years, 2 months ago (2015-10-06 03:23:38 UTC) #71
nikunjb
https://codereview.chromium.org/1349163008/diff/440001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1349163008/diff/440001/tools/metrics/histograms/histograms.xml#newcode74529 tools/metrics/histograms/histograms.xml:74529: + <affected-histogram name="DefaultBrowser.AsyncSetAsDefault.Duration"/> include Other worker and LaunchFailure is ...
5 years, 1 month ago (2015-10-26 17:45:30 UTC) #73
Patrick Monette
5 years, 1 month ago (2015-10-26 18:10:21 UTC) #74
Message was sent while issue was closed.
https://codereview.chromium.org/1349163008/diff/440001/tools/metrics/histogra...
File tools/metrics/histograms/histograms.xml (right):

https://codereview.chromium.org/1349163008/diff/440001/tools/metrics/histogra...
tools/metrics/histograms/histograms.xml:74529: +  <affected-histogram
name="DefaultBrowser.AsyncSetAsDefault.Duration"/>
On 2015/10/26 17:45:30, nikunjb wrote:
>  include Other worker and LaunchFailure is skipped. Expected?


Yes because the duration for those error codes are not useful. If they even
happen, it will be at the beginning of setting the default browser and the
duration will always be 0.

Powered by Google App Engine
This is Rietveld 408576698