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

Issue 7033018: Handler settings page. (Closed)

Created:
9 years, 7 months ago by koz (OOO until 15th September)
Modified:
9 years, 5 months ago
CC:
chromium-reviews, jam, arv (Not doing code reviews), pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Handler settings page. This change implements a settings page that allows users to manage protocol handlers registered via navigator.registerProtocolHandler. tony: could you review the ProtocolHandlerRegistry stuff? estade: could you review the webui stuff? Thanks! TEST=Unit tests provided. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86762

Patch Set 1 #

Patch Set 2 : Removed errant /* */ #

Total comments: 40

Patch Set 3 : Responded to comments #

Total comments: 28

Patch Set 4 : Respond to changes #

Patch Set 5 : Respond to comments #

Patch Set 6 : small nits #

Total comments: 35

Patch Set 7 : add flags, respond to comments #

Patch Set 8 : remove UNIT_TEST flag, replace with in_unit_test_ variable #

Total comments: 2

Patch Set 9 : remove in_unit_test_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+871 lines, -52 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -1 line 0 comments Download
M build/features_override.gypi View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 5 chunks +37 lines, -3 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.h View 1 2 3 4 5 6 8 8 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 3 4 5 6 7 8 10 chunks +87 lines, -29 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +97 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/content_settings.html View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings.js View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/resources/options/content_settings_ui.js View 1 chunk +25 lines, -1 line 0 comments Download
A chrome/browser/resources/options/handler_options.css View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/handler_options.html View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/handler_options.js View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/handler_options_list.js View 1 2 3 1 chunk +139 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.html View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.js View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/resources/options/options_bundle.js View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 5 6 7 8 7 chunks +25 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/handler_options_handler.h View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/handler_options_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +155 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/notification_type.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
koz (OOO until 15th September)
Also, I'd like to put this behind a flag defined in WebKit, which means I ...
9 years, 7 months ago (2011-05-19 06:33:30 UTC) #1
Evan Stade
http://codereview.chromium.org/7033018/diff/25/chrome/browser/resources/options/handler_options.css File chrome/browser/resources/options/handler_options.css (right): http://codereview.chromium.org/7033018/diff/25/chrome/browser/resources/options/handler_options.css#newcode1 chrome/browser/resources/options/handler_options.css:1: #handlers-column-headers { I'm not sure why so many css ...
9 years, 7 months ago (2011-05-19 17:08:42 UTC) #2
koz (OOO until 15th September)
Thanks for the prompt and thorough review, Evan. http://codereview.chromium.org/7033018/diff/25/chrome/browser/resources/options/handler_options.css File chrome/browser/resources/options/handler_options.css (right): http://codereview.chromium.org/7033018/diff/25/chrome/browser/resources/options/handler_options.css#newcode1 chrome/browser/resources/options/handler_options.css:1: #handlers-column-headers ...
9 years, 7 months ago (2011-05-19 21:07:52 UTC) #3
Evan Stade
webui parts LGTM with additional nits http://codereview.chromium.org/7033018/diff/4003/chrome/browser/resources/options/content_settings.js File chrome/browser/resources/options/content_settings.js (right): http://codereview.chromium.org/7033018/diff/4003/chrome/browser/resources/options/content_settings.js#newcode70 chrome/browser/resources/options/content_settings.js:70: ContentSettings.updateHandlersEnabledRadios = function(enabled) ...
9 years, 7 months ago (2011-05-20 22:01:28 UTC) #4
koz (OOO until 15th September)
Awesome, thanks! http://codereview.chromium.org/7033018/diff/4003/chrome/browser/resources/options/content_settings.js File chrome/browser/resources/options/content_settings.js (right): http://codereview.chromium.org/7033018/diff/4003/chrome/browser/resources/options/content_settings.js#newcode70 chrome/browser/resources/options/content_settings.js:70: ContentSettings.updateHandlersEnabledRadios = function(enabled) { On 2011/05/20 22:01:28, ...
9 years, 7 months ago (2011-05-20 22:19:56 UTC) #5
willchan no longer on Chromium
http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode392 chrome/browser/custom_handlers/protocol_handler_registry.cc:392: void ProtocolHandlerRegistry::Notify(NotificationType type) { What thread is Notify() being ...
9 years, 7 months ago (2011-05-20 22:48:50 UTC) #6
koz (OOO until 15th September)
http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode392 chrome/browser/custom_handlers/protocol_handler_registry.cc:392: void ProtocolHandlerRegistry::Notify(NotificationType type) { On 2011/05/20 22:48:50, willchan wrote: ...
9 years, 7 months ago (2011-05-20 23:18:57 UTC) #7
willchan no longer on Chromium
http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode55 chrome/browser/custom_handlers/protocol_handler_registry.cc:55: Notify(NotificationType::PROTOCOL_HANDLER_REGISTRY_CHANGED); Which thread does this happen on? Is this ...
9 years, 7 months ago (2011-05-21 00:06:05 UTC) #8
tony
http://codereview.chromium.org/7033018/diff/7005/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7033018/diff/7005/chrome/app/generated_resources.grd#newcode5324 chrome/app/generated_resources.grd:5324: Type Nit: Content Type (to match Firefox) http://codereview.chromium.org/7033018/diff/7005/chrome/app/generated_resources.grd#newcode5330 chrome/app/generated_resources.grd:5330: ...
9 years, 7 months ago (2011-05-23 21:42:00 UTC) #9
koz (OOO until 15th September)
http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): http://codereview.chromium.org/7033018/diff/4003/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode55 chrome/browser/custom_handlers/protocol_handler_registry.cc:55: Notify(NotificationType::PROTOCOL_HANDLER_REGISTRY_CHANGED); On 2011/05/21 00:06:05, willchan wrote: > Which thread ...
9 years, 7 months ago (2011-05-24 08:47:49 UTC) #10
koz (OOO until 15th September)
Added glen as reviewer.
9 years, 7 months ago (2011-05-24 08:49:32 UTC) #11
tony
LGTM. My nits with the UI shouldn't block this patch landing. My biggest UI nit ...
9 years, 7 months ago (2011-05-24 18:16:13 UTC) #12
Glen Murphy
> http://codereview.chromium.org/7033018/diff/7005/chrome/app/generated_resources.grd > File chrome/app/generated_resources.grd (right): > > http://codereview.chromium.org/7033018/diff/7005/chrome/app/generated_resources.grd#newcode5324 > chrome/app/generated_resources.grd:5324: Type > On 2011/05/23 ...
9 years, 7 months ago (2011-05-24 23:30:00 UTC) #13
koz (OOO until 15th September)
Adding jam@ for content/common/notification_type.h.
9 years, 7 months ago (2011-05-25 05:39:31 UTC) #14
jam
http://codereview.chromium.org/7033018/diff/19001/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): http://codereview.chromium.org/7033018/diff/19001/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode373 chrome/browser/custom_handlers/protocol_handler_registry.cc:373: if (!in_unit_test_) you don't need to change the code ...
9 years, 7 months ago (2011-05-25 16:18:29 UTC) #15
koz (OOO until 15th September)
http://codereview.chromium.org/7033018/diff/19001/chrome/browser/custom_handlers/protocol_handler_registry.cc File chrome/browser/custom_handlers/protocol_handler_registry.cc (right): http://codereview.chromium.org/7033018/diff/19001/chrome/browser/custom_handlers/protocol_handler_registry.cc#newcode373 chrome/browser/custom_handlers/protocol_handler_registry.cc:373: if (!in_unit_test_) On 2011/05/25 16:18:30, John Abd-El-Malek wrote: > ...
9 years, 7 months ago (2011-05-25 21:32:31 UTC) #16
jam
lgtm
9 years, 7 months ago (2011-05-25 23:26:53 UTC) #17
Glen Murphy
9 years, 7 months ago (2011-05-27 20:48:04 UTC) #18
>
>
>
>
http://codereview.chromium.org/7033018/diff/7005/chrome/app/generated_resourc...
>
>> chrome/app/generated_resources.grd:5330: remove this site
>> On 2011/05/23 21:42:00, tony wrote:
>> > Should this be capitalized?  Should this just be an X to remove a site
>> (see
>> > Locations or Notifications)?
>>
>
>  I'm not sure - currently the design is faithful to Glen's mocks. I'll add
>> him
>>
> to
>
>> this review.
>>
>
> This should probably be an 'X' - sorry for the poor mocks. It's OK if you
> do
> this in a separate CL, and it shouldn't block landing of this patch for
> M13.


Ohh, I just took a look at the mocks - the 'remove this site' instead of an
'X' was intentional because it doesn't always remove the row (as the other
Xes do), just the selected item in the multiple handlers case.

Powered by Google App Engine
This is Rietveld 408576698