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.

Review URL: http://codereview.chromium.org/7033018

git-svn-id: http://src.chromium.org/svn/trunk/src/build@86762 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
koz@chromium.org 2011-05-26 01:30:56 +00:00
Родитель c0403fa4c8
Коммит d2f4484f67
2 изменённых файлов: 19 добавлений и 1 удалений

Просмотреть файл

@ -129,6 +129,9 @@
# currently only works on Linux.
'use_third_party_translations%': 0,
# Enable the Manage Handlers section in the settings page.
'enable_register_protocol_handler%': 0,
# Remoting compilation is enabled by default. Set to 0 to disable.
'remoting%': 1,
@ -228,6 +231,7 @@
'remoting%': '<(remoting)',
'p2p_apis%': '<(p2p_apis)',
'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
# The release channel that this build targets. This is used to restrict
# channel-specific build options, like which installer packages to create.
@ -575,7 +579,11 @@
'use_ibus%': 1,
}, {
'use_ibus%': 0,
}]
}],
['enable_register_protocol_handler==1', {
'grit_defines': ['-D', 'enable_register_protocol_handler'],
}],
],
},
'target_defaults': {
@ -760,6 +768,11 @@
'<(DEPTH)/third_party/wtl/include',
],
}], # OS==win
['enable_register_protocol_handler==1', {
'defines': [
'ENABLE_REGISTER_PROTOCOL_HANDLER',
],
}],
], # conditions for 'target_defaults'
'target_conditions': [
['chromium_code==0', {

Просмотреть файл

@ -119,6 +119,11 @@
'WTF_USE_WEBAUDIO_FFMPEG=1',
],
}],
['enable_register_protocol_handler==1', {
'feature_defines': [
'ENABLE_REGISTER_PROTOCOL_HANDLER=1',
],
}],
],
# TODO: If the need arises, create a mechanism that will intelligently
# merge the lists rather than replace one with the other. This may