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

Issue 293983004: Modify ProtocolHandlerRegistry to make room for policy (Closed)

Created:
6 years, 7 months ago by kaliamoorthi
Modified:
6 years, 6 months ago
CC:
chromium-reviews, Andrew T Wilson (Slow), jochen (gone - plz use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Modify ProtocolHandlerRegistry to make room for policy This CL modifies ProtocolHandlerRegistry to enable addition of policy for registering and ignoring protocol handlers. The current implementation does not allow it since it saves the registered handlers, which would result in policy leak when directly mapped, i.e., protocol handler registered via policy would be saved to disk and mixed with user preference. BUG=116119 TBR=koz,jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274223

Patch Set 1 #

Total comments: 11

Patch Set 2 : Added unit test for the changes #

Total comments: 2

Patch Set 3 : Cleans up the unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -45 lines) Patch
M chrome/browser/custom_handlers/protocol_handler_registry.h View 1 4 chunks +45 lines, -2 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 12 chunks +109 lines, -43 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 4 chunks +210 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
kaliamoorthi
Hi Jochen, I am changing protocol handler to add a policy for it. Its a ...
6 years, 7 months ago (2014-05-20 12:56:15 UTC) #1
jochen (gone - plz use gerrit)
as discussed offline, somebody more familiar with protocol handlers should look at this (tony/koz)
6 years, 7 months ago (2014-05-21 09:20:57 UTC) #2
kaliamoorthi
Hi Tony/James, I am changing protocol handler to add a policy for it. Its a ...
6 years, 7 months ago (2014-05-21 09:35:06 UTC) #3
tony
I defer to koz.
6 years, 7 months ago (2014-05-21 19:39:53 UTC) #4
koz (OOO until 15th September)
The approach looks ok to me. Can you please add some tests to exercise this ...
6 years, 7 months ago (2014-05-22 00:50:21 UTC) #5
koz (OOO until 15th September)
https://codereview.chromium.org/293983004/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): https://codereview.chromium.org/293983004/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode446 chrome/browser/custom_handlers/protocol_handler_registry.cc:446: std::vector<const base::DictionaryValue*> registered_handlers = It might be worth introducing ...
6 years, 7 months ago (2014-05-22 00:51:31 UTC) #6
kaliamoorthi
Thanks for the feedback. I'll send a new revision that fixes these comments along with ...
6 years, 6 months ago (2014-05-28 08:40:20 UTC) #7
kaliamoorthi
The revision includes unit tests and addresses your old comments. PTAL. https://codereview.chromium.org/293983004/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): ...
6 years, 6 months ago (2014-05-30 10:01:09 UTC) #8
koz (OOO until 15th September)
lgtm, thanks https://codereview.chromium.org/293983004/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): https://codereview.chromium.org/293983004/diff/1/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode617 chrome/browser/custom_handlers/protocol_handler_registry.cc:617: Save(); On 2014/05/30 10:01:09, kaliamoorthi wrote: > ...
6 years, 6 months ago (2014-06-01 23:44:28 UTC) #9
kaliamoorthi
Thanks for the review. Your final comments are addressed. https://codereview.chromium.org/293983004/diff/20001/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc File chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc (right): https://codereview.chromium.org/293983004/diff/20001/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc#newcode972 chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc:972: ...
6 years, 6 months ago (2014-06-02 09:47:30 UTC) #10
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 6 months ago (2014-06-02 09:48:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/293983004/40001
6 years, 6 months ago (2014-06-02 09:49:44 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-02 12:50:13 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 12:52:28 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/71018)
6 years, 6 months ago (2014-06-02 12:52:28 UTC) #15
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 6 months ago (2014-06-02 13:12:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/293983004/40001
6 years, 6 months ago (2014-06-02 13:13:03 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-02 13:16:22 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 13:19:31 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/71022)
6 years, 6 months ago (2014-06-02 13:19:32 UTC) #20
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 6 months ago (2014-06-02 13:21:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/293983004/40001
6 years, 6 months ago (2014-06-02 13:22:40 UTC) #22
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 13:26:45 UTC) #23
Message was sent while issue was closed.
Change committed as 274223

Powered by Google App Engine
This is Rietveld 408576698