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

Issue 1832853003: DefaultBrowserWorker now fully supports opening the settings for Win10 (Closed)

Created:
4 years, 9 months ago by Patrick Monette
Modified:
4 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DefaultBrowserWorker now fully supports opening the settings for Win10 The worker uses a new SetAsDefaultBrowser style function that manages the user interaction with the system settings. BUG=576490 Committed: https://crrev.com/32a5cfb4e2c2db333e007fbba67d35bd9fa664bd Cr-Commit-Position: refs/heads/master@{#386487}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Comments #

Total comments: 14

Patch Set 3 : Refactoring of the helper class #

Total comments: 24

Patch Set 4 : More comments #

Total comments: 6

Patch Set 5 : Addressed comments #

Total comments: 6

Patch Set 6 : Added comment + nits #

Total comments: 6

Patch Set 7 : Sky comments + refactoring #

Total comments: 4

Patch Set 8 : Fix last nits #

Patch Set 9 : Rebasing + fix compilation error #

Patch Set 10 : Fix mac compilation #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -121 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 4 chunks +22 lines, -29 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 3 4 5 6 7 8 7 chunks +36 lines, -25 lines 1 comment Download
M chrome/browser/shell_integration_android.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/shell_integration_chromeos.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/shell_integration_mac.mm View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -6 lines 0 comments Download
A chrome/browser/shell_integration_win.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 6 chunks +188 lines, -38 lines 0 comments Download
M chrome/browser/ui/cocoa/first_run_dialog.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt_win.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_default_browser_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (14 generated)
Patrick Monette
PTAL
4 years, 9 months ago (2016-03-24 18:11:38 UTC) #3
grt (UTC plus 2)
https://codereview.chromium.org/1832853003/diff/1/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1832853003/diff/1/chrome/browser/shell_integration.cc#newcode51 chrome/browser/shell_integration.cc:51: } should this also: on_finished_callback.Run(); since the fn is ...
4 years, 8 months ago (2016-03-29 16:45:03 UTC) #4
Patrick Monette
Thanks for the comments PTAnL https://codereview.chromium.org/1832853003/diff/1/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1832853003/diff/1/chrome/browser/shell_integration.cc#newcode51 chrome/browser/shell_integration.cc:51: } On 2016/03/29 16:45:02, ...
4 years, 8 months ago (2016-03-29 17:43:08 UTC) #5
grt (UTC plus 2)
okay, the real review has started. :-) https://codereview.chromium.org/1832853003/diff/20001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1832853003/diff/20001/chrome/browser/shell_integration.h#newcode244 chrome/browser/shell_integration.h:244: // Subclasses ...
4 years, 8 months ago (2016-03-30 15:55:10 UTC) #6
Patrick Monette
On 2016/03/30 15:55:10, grt (very slow) wrote: > okay, the real review has started. :-) ...
4 years, 8 months ago (2016-03-30 22:09:47 UTC) #7
Patrick Monette
Thanks for the comments. PTAL. https://codereview.chromium.org/1832853003/diff/20001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1832853003/diff/20001/chrome/browser/shell_integration.h#newcode244 chrome/browser/shell_integration.h:244: // Subclasses MUST make ...
4 years, 8 months ago (2016-03-30 22:21:55 UTC) #8
grt (UTC plus 2)
looking good! https://codereview.chromium.org/1832853003/diff/40001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1832853003/diff/40001/chrome/browser/shell_integration_win.cc#newcode241 chrome/browser/shell_integration_win.cc:241: registry_watcher_count_(protocols.size()), should this count be the # ...
4 years, 8 months ago (2016-03-31 13:23:37 UTC) #9
Patrick Monette
How about now!? PTanL https://codereview.chromium.org/1832853003/diff/40001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1832853003/diff/40001/chrome/browser/shell_integration_win.cc#newcode241 chrome/browser/shell_integration_win.cc:241: registry_watcher_count_(protocols.size()), On 2016/03/31 13:23:37, grt ...
4 years, 8 months ago (2016-03-31 18:26:04 UTC) #10
grt (UTC plus 2)
looking good. https://codereview.chromium.org/1832853003/diff/60001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1832853003/diff/60001/chrome/browser/shell_integration_win.cc#newcode255 chrome/browser/shell_integration_win.cc:255: int i = 0; you could get ...
4 years, 8 months ago (2016-03-31 19:08:12 UTC) #11
Patrick Monette
Can you please take yet another look grt@ https://codereview.chromium.org/1832853003/diff/60001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/1832853003/diff/60001/chrome/browser/shell_integration_win.cc#newcode255 chrome/browser/shell_integration_win.cc:255: int ...
4 years, 8 months ago (2016-04-05 20:04:55 UTC) #12
grt (UTC plus 2)
nice! lgtm.
4 years, 8 months ago (2016-04-06 19:41:51 UTC) #13
Patrick Monette
sky@ PTAL at shell_integration* asvitkine@ PTAL at histograms related changes.
4 years, 8 months ago (2016-04-06 20:08:55 UTC) #15
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1832853003/diff/80001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1832853003/diff/80001/chrome/browser/shell_integration.cc#newcode50 chrome/browser/shell_integration.cc:50: NOTREACHED(); Why is this NOTREACHED()? Should have a ...
4 years, 8 months ago (2016-04-06 20:13:06 UTC) #16
Patrick Monette
https://codereview.chromium.org/1832853003/diff/80001/chrome/browser/shell_integration.cc File chrome/browser/shell_integration.cc (right): https://codereview.chromium.org/1832853003/diff/80001/chrome/browser/shell_integration.cc#newcode50 chrome/browser/shell_integration.cc:50: NOTREACHED(); On 2016/04/06 20:13:06, Alexei Svitkine wrote: > Why ...
4 years, 8 months ago (2016-04-06 21:54:34 UTC) #17
sky
I started look at shell_integration_win.cc, then stopped when I realized grt is an owner. Only ...
4 years, 8 months ago (2016-04-07 18:18:47 UTC) #18
Patrick Monette
sky@ WDYT now? https://codereview.chromium.org/1832853003/diff/100001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1832853003/diff/100001/chrome/browser/shell_integration.h#newcode40 chrome/browser/shell_integration.h:40: void SetAsDefaultBrowserUsingSystemSettings( On 2016/04/07 18:18:47, sky ...
4 years, 8 months ago (2016-04-08 22:26:08 UTC) #20
sky
Much improved, thanks. LGTM https://codereview.chromium.org/1832853003/diff/140001/chrome/browser/shell_integration_win.h File chrome/browser/shell_integration_win.h (right): https://codereview.chromium.org/1832853003/diff/140001/chrome/browser/shell_integration_win.h#newcode10 chrome/browser/shell_integration_win.h:10: #include "base/callback.h" nit: callback_forward.h https://codereview.chromium.org/1832853003/diff/140001/chrome/browser/shell_integration_win.h#newcode11 ...
4 years, 8 months ago (2016-04-11 15:06:55 UTC) #21
Patrick Monette
Thanks! https://codereview.chromium.org/1832853003/diff/140001/chrome/browser/shell_integration_win.h File chrome/browser/shell_integration_win.h (right): https://codereview.chromium.org/1832853003/diff/140001/chrome/browser/shell_integration_win.h#newcode10 chrome/browser/shell_integration_win.h:10: #include "base/callback.h" On 2016/04/11 15:06:55, sky wrote: > ...
4 years, 8 months ago (2016-04-11 15:48:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832853003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832853003/160001
4 years, 8 months ago (2016-04-11 15:48:49 UTC) #25
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/185226) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-11 16:02:52 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832853003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832853003/180001
4 years, 8 months ago (2016-04-11 16:38:15 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/93354)
4 years, 8 months ago (2016-04-11 17:03:45 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832853003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832853003/200001
4 years, 8 months ago (2016-04-11 18:17:27 UTC) #35
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 8 months ago (2016-04-11 22:05:00 UTC) #37
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/32a5cfb4e2c2db333e007fbba67d35bd9fa664bd Cr-Commit-Position: refs/heads/master@{#386487}
4 years, 8 months ago (2016-04-11 22:07:27 UTC) #39
grt (UTC plus 2)
4 years, 8 months ago (2016-04-12 13:36:44 UTC) #40
Message was sent while issue was closed.
nice refactor. lgtm w/ one nit for the future.

https://codereview.chromium.org/1832853003/diff/200001/chrome/browser/shell_i...
File chrome/browser/shell_integration.cc (right):

https://codereview.chromium.org/1832853003/diff/200001/chrome/browser/shell_i...
chrome/browser/shell_integration.cc:252: } else {
nit for the future: omit "else" when the "if" clause ends with "return;":
  if (foo) {
    blorf();
    return;
  }
  // don't put this in an "else" clause:
  spam();

Powered by Google App Engine
This is Rietveld 408576698