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

Issue 12253022: Manifest handler for all keys background-related. (Closed)

Created:
7 years, 10 months ago by Yoyo Zhou
Modified:
7 years, 9 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, nkostylev+watch_chromium.org, kkania, Aaron Boodman, robertshield, oshima+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Manifest handler for all keys background-related. Changes the manifest handler registration interface to (new Handler)->Register() and requires handlers to declare what keys they parse in Keys(). Also fixes const correctness in Manifest::Get* and ManifestHandler. Based on https://codereview.chromium.org/12256031/. BUG=159265 TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185391

Patch Set 1 : #

Total comments: 15

Patch Set 2 : 1/2 mp #

Patch Set 3 : Register interface #

Patch Set 4 : test fixing #

Patch Set 5 : rebase #

Patch Set 6 : icons #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+994 lines, -726 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/background/background_application_list_model.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 2 3 4 5 8 chunks +14 lines, -9 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_manifest_unittest.cc View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_resource_throttle_unittest.cc View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/alarms/alarms_api_unittest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/commands/command_service.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/context_menus/context_menus_api.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 1 2 3 4 5 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_action_api.cc View 1 2 2 chunks +3 lines, -11 lines 0 comments Download
chrome/browser/extensions/api/file_handlers/file_handlers_api.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/i18n/i18n_api.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/api/icons/icons_api.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api.cc View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/messaging/extension_message_port.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/api/page_launcher/page_launcher_api.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/api/runtime/runtime_api.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/themes/theme_api.cc View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/csp_parser.cc View 1 2 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/browser/extensions/event_router.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 8 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_protocols.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_protocols_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/image_loader_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/lazy_background_task_queue.cc View 5 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/extensions/manifest_url_parser.cc View 1 2 2 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/extensions/menu_manager.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/sandboxed_unpacker_unittest.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/startup_helper.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/web_accessible_resources_parser.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry_unittest.cc View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences_unittest.cc View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
chrome/browser/speech/extension_api/tts_extension_api.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/action_box_menu_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/commands/commands_handler.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/extensions/api/commands/commands_handler.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/extensions/api/commands/commands_manifest_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/api/extension_action/browser_action_handler.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_action/browser_action_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_action/browser_action_manifest_unittest.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/common/extensions/api/extension_action/page_action_handler.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_action/page_action_handler.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_action/page_action_manifest_unittest.cc View 1 2 10 chunks +17 lines, -21 lines 0 comments Download
M chrome/common/extensions/api/extension_action/script_badge_handler.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/extension_action/script_badge_handler.cc View 1 2 3 4 5 4 chunks +10 lines, -7 lines 0 comments Download
M chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/common/extensions/api/file_handlers/file_handlers_parser.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/file_handlers/file_handlers_parser.cc View 1 2 4 chunks +14 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/i18n/default_locale_handler.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/i18n/default_locale_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/i18n/default_locale_manifest_unittest.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/common/extensions/api/icons/icons_handler.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/icons/icons_handler.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/icons/icons_manifest_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/api/identity/extension_manifests_auth_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/identity/oauth2_manifest_handler.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/identity/oauth2_manifest_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/input_ime/input_components_handler.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/input_ime/input_components_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/omnibox/omnibox_handler.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
chrome/common/extensions/api/omnibox/omnibox_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/page_launcher/page_launcher_handler.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/page_launcher/page_launcher_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/speech/tts_engine_manifest_handler.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/themes/theme_handler.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/themes/theme_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/common/extensions/background_info.h View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/common/extensions/background_info.cc View 1 2 1 chunk +255 lines, -0 lines 0 comments Download
M chrome/common/extensions/csp_handler.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/csp_handler.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 5 chunks +3 lines, -42 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 20 chunks +25 lines, -165 lines 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 2 3 4 5 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension_file_util_unittest.cc View 1 2 3 4 5 2 chunks +10 lines, -15 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/common/extensions/manifest.h View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M chrome/common/extensions/manifest.cc View 1 2 3 4 4 chunks +7 lines, -17 lines 0 comments Download
M chrome/common/extensions/manifest_handler.h View 1 2 3 4 5 3 chunks +18 lines, -8 lines 0 comments Download
M chrome/common/extensions/manifest_handler.cc View 1 2 3 4 5 4 chunks +16 lines, -11 lines 0 comments Download
M chrome/common/extensions/manifest_handler_unittest.cc View 1 2 3 4 5 6 chunks +37 lines, -26 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_background_unittest.cc View 1 2 6 chunks +27 lines, -16 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_contentsecuritypolicy_unittest.cc View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_devtools_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -13 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_offline_unittest.cc View 1 2 2 chunks +14 lines, -3 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_options_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_override_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_ui_unittest.cc View 1 2 2 chunks +2 lines, -9 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_update_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_web_accessible_resources_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/manifest_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/manifest_url_handler.h View 1 2 5 chunks +25 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_url_handler.cc View 1 2 5 chunks +20 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 32 chunks +35 lines, -31 lines 0 comments Download
M chrome/common/extensions/unpacker_unittest.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/common/extensions/web_accessible_resources_handler.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/web_accessible_resources_handler.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 2 chunks +7 lines, -18 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/event_bindings.cc View 9 chunks +16 lines, -17 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 2 chunks +7 lines, -20 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Yoyo Zhou
https://codereview.chromium.org/12253022/diff/5001/chrome/common/extensions/web_intents_handler.cc File chrome/common/extensions/web_intents_handler.cc (right): https://codereview.chromium.org/12253022/diff/5001/chrome/common/extensions/web_intents_handler.cc#newcode212 chrome/common/extensions/web_intents_handler.cc:212: const std::vector<std::string>& WebIntentsHandler::PrerequisiteKeys() const { I went to all ...
7 years, 10 months ago (2013-02-15 02:28:25 UTC) #1
Matt Perry
Noting for posterity: I had some concerns about whether it was worth pulling BackgroundInfo out ...
7 years, 10 months ago (2013-02-15 20:15:02 UTC) #2
Yoyo Zhou
Haven't finished refactoring the 85 callsites of ManifestHandler::Register, but I don't understand one of your ...
7 years, 10 months ago (2013-02-16 00:54:04 UTC) #3
Matt Perry
https://codereview.chromium.org/12253022/diff/5001/chrome/common/extensions/background_info.h File chrome/common/extensions/background_info.h (right): https://codereview.chromium.org/12253022/diff/5001/chrome/common/extensions/background_info.h#newcode36 chrome/common/extensions/background_info.h:36: GURL background_url; On 2013/02/16 00:54:04, Yoyo Zhou wrote: > ...
7 years, 10 months ago (2013-02-16 01:16:52 UTC) #4
Yoyo Zhou
Please look again.
7 years, 10 months ago (2013-02-26 23:39:41 UTC) #5
Matt Perry
Good cleanup! LGTM
7 years, 10 months ago (2013-02-26 23:53:01 UTC) #6
Yoyo Zhou
TBR=ben for mechanical refactoring
7 years, 10 months ago (2013-02-27 03:11:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/12253022/38006
7 years, 10 months ago (2013-02-27 04:58:22 UTC) #8
commit-bot: I haz the power
Failed to apply patch for chrome/browser/media_gallery/media_file_system_registry_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-27 04:59:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/12253022/52001
7 years, 9 months ago (2013-02-27 22:49:53 UTC) #10
Yoyo Zhou
Another minor cleanup: making PrerequisiteKeys not return by reference.
7 years, 9 months ago (2013-02-27 22:50:06 UTC) #11
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=103548
7 years, 9 months ago (2013-02-28 00:40:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/12253022/52001
7 years, 9 months ago (2013-02-28 17:50:10 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chrome/browser/media_gallery/media_file_system_registry_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-02-28 17:50:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/12253022/75001
7 years, 9 months ago (2013-02-28 18:37:11 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=103879
7 years, 9 months ago (2013-02-28 21:12:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/12253022/78002
7 years, 9 months ago (2013-02-28 21:12:57 UTC) #17
commit-bot: I haz the power
Failed to trigger a try job on mac HTTP Error 400: Bad Request
7 years, 9 months ago (2013-02-28 21:30:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/12253022/78005
7 years, 9 months ago (2013-02-28 21:30:44 UTC) #19
commit-bot: I haz the power
7 years, 9 months ago (2013-03-01 01:29:32 UTC) #20
Message was sent while issue was closed.
Change committed as 185391

Powered by Google App Engine
This is Rietveld 408576698