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

Issue 1657933003: Fixes the interactive default browser UX for policy setting (Closed)

Created:
4 years, 10 months ago by Patrick Monette
Modified:
4 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, michaelpg+watch-options_chromium.org, stevenjb+watch-md-settings_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes the interactive default browser UX for policy setting This was caused by relying on the default implementation of IsInteractiveSetDefaultPermitted(). This CL also replace this function with an explicit member variable. BUG=583317 Committed: https://crrev.com/8db6a8be4aaf1b158a6e7b10b4991d91ac69fa67 Cr-Commit-Position: refs/heads/master@{#374831}

Patch Set 1 #

Total comments: 6

Patch Set 2 : grt comments #

Total comments: 10

Patch Set 3 : grt comments 2 #

Total comments: 5

Patch Set 4 : Rebase #

Patch Set 5 : Comments #

Total comments: 1

Patch Set 6 : Rebase #

Total comments: 8

Patch Set 7 : Comments #

Patch Set 8 : Fix unittests #

Patch Set 9 : Fix merge issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -102 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 3 4 5 6 3 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler_unittest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 9 chunks +38 lines, -15 lines 0 comments Download
M chrome/browser/shell_integration.cc View 1 2 3 4 5 9 chunks +19 lines, -31 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_delegate.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/startup/default_browser_prompt.cc View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/set_as_default_browser_ui.cc View 1 2 3 4 5 6 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_default_browser_handler.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/settings_default_browser_handler.cc View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 40 (17 generated)
Patrick Monette
PTAL
4 years, 10 months ago (2016-02-02 16:44:04 UTC) #3
grt (UTC plus 2)
Looks fine overall, although the pair of bools at each callsite is a bit hard ...
4 years, 10 months ago (2016-02-02 17:28:22 UTC) #5
Patrick Monette
Take another look! https://codereview.chromium.org/1657933003/diff/1/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/1657933003/diff/1/chrome/browser/browser_process_impl.cc#newcode1199 chrome/browser/browser_process_impl.cc:1199: new ShellIntegration::DefaultBrowserWorker(NULL, false, false); On 2016/02/02 ...
4 years, 10 months ago (2016-02-02 22:24:15 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/1657933003/diff/20001/chrome/browser/external_protocol/external_protocol_handler.cc File chrome/browser/external_protocol/external_protocol_handler.cc (right): https://codereview.chromium.org/1657933003/diff/20001/chrome/browser/external_protocol/external_protocol_handler.cc#newcode41 chrome/browser/external_protocol/external_protocol_handler.cc:41: // behavior; if a delegate is provided it will ...
4 years, 10 months ago (2016-02-03 15:39:57 UTC) #7
Patrick Monette
I addressed your comments grt. jam@ I need review from a owner. PTAL https://codereview.chromium.org/1657933003/diff/20001/chrome/browser/external_protocol/external_protocol_handler.cc File ...
4 years, 10 months ago (2016-02-03 23:01:39 UTC) #9
grt (UTC plus 2)
lgtm
4 years, 10 months ago (2016-02-04 15:54:26 UTC) #10
jam
On 2016/02/03 23:01:39, Patrick Monette wrote: > I addressed your comments grt. > > jam@ ...
4 years, 10 months ago (2016-02-04 19:28:08 UTC) #11
Patrick Monette
thakis@ Please review everything under chrome/browser/* excluding the /ui folder. pkasting@ Can you review chrome/browser/ui ...
4 years, 10 months ago (2016-02-08 23:37:15 UTC) #14
Peter Kasting
LGTM
4 years, 10 months ago (2016-02-09 00:59:53 UTC) #15
Nico
is it possible to write a test for this? https://codereview.chromium.org/1657933003/diff/40001/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): https://codereview.chromium.org/1657933003/diff/40001/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode298 chrome/browser/custom_handlers/protocol_handler_registry.cc:298: ...
4 years, 10 months ago (2016-02-09 03:01:32 UTC) #16
Peter Kasting
https://codereview.chromium.org/1657933003/diff/40001/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/1657933003/diff/40001/chrome/browser/shell_integration.h#newcode220 chrome/browser/shell_integration.h:220: // freed in the destructor. On 2016/02/09 03:01:31, Nico ...
4 years, 10 months ago (2016-02-09 06:04:23 UTC) #17
Patrick Monette
thakis@ browser_process_impl is has no real tests. I've added a comment to justify the use ...
4 years, 10 months ago (2016-02-09 17:15:05 UTC) #18
Patrick Monette
thakis@ Friendly ping
4 years, 10 months ago (2016-02-09 23:54:15 UTC) #20
Patrick Monette
https://codereview.chromium.org/1657933003/diff/100001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/1657933003/diff/100001/chrome/browser/browser_process_impl.cc#newcode1199 chrome/browser/browser_process_impl.cc:1199: bool delete_observer = Woops this isn't compiling. Fixed with ...
4 years, 10 months ago (2016-02-10 17:26:42 UTC) #21
Nico
lgtm, looking forward to the change that makes ownership cleaner. https://codereview.chromium.org/1657933003/diff/120001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/1657933003/diff/120001/chrome/browser/browser_process_impl.cc#newcode1202 ...
4 years, 10 months ago (2016-02-10 17:33:58 UTC) #22
Patrick Monette
Thank you! https://codereview.chromium.org/1657933003/diff/120001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/1657933003/diff/120001/chrome/browser/browser_process_impl.cc#newcode1202 chrome/browser/browser_process_impl.cc:1202: /*delete_observer=*/false); On 2016/02/10 17:33:58, Nico wrote: > ...
4 years, 10 months ago (2016-02-10 20:44:42 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657933003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657933003/140001
4 years, 10 months ago (2016-02-10 20:47:58 UTC) #26
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/64843)
4 years, 10 months ago (2016-02-10 21:08:47 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657933003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657933003/160001
4 years, 10 months ago (2016-02-10 22:10:22 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/20389) android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-10 22:17:43 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657933003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657933003/180001
4 years, 10 months ago (2016-02-11 00:36:11 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 10 months ago (2016-02-11 01:50:47 UTC) #38
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:33:56 UTC) #40
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8db6a8be4aaf1b158a6e7b10b4991d91ac69fa67
Cr-Commit-Position: refs/heads/master@{#374831}

Powered by Google App Engine
This is Rietveld 408576698