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

Issue 12084034: Change manifest handler interface to always (implicitly) pass the entire manifest to handlers. (Closed)

Created:
7 years, 10 months ago by Yoyo Zhou
Modified:
7 years, 10 months ago
Reviewers:
Devlin, Matt Perry
CC:
chromium-reviews, dtseng+watch_chromium.org, nkostylev+watch_chromium.org, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, ctguil+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, zork+watch_chromium.org, mhx348_motorola.com
Visibility:
Public.

Description

Change ManifestHandler interface to always (implicitly) pass the entire manifest to handlers. This makes it possible to support multi-key handlers using the same interface. Fixes a bug with default behavior for manifest handlers; previously, HasNoKey would be called even for inappropriate extension types. BUG=159265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179470

Patch Set 1 #

Total comments: 6

Patch Set 2 : mp #

Patch Set 3 : fix script badges #

Patch Set 4 : after icon #

Total comments: 5

Patch Set 5 : tts, TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -227 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_handler.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/commands/commands_handler.h View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/common/extensions/api/commands/commands_handler.cc View 4 chunks +22 lines, -17 lines 0 comments Download
M chrome/common/extensions/api/extension_action/browser_action_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/extensions/api/extension_action/browser_action_handler.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/extension_action/script_badge_handler.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/extension_action/script_badge_handler.cc View 1 2 4 chunks +14 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/file_handlers/file_handlers_parser.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/extensions/api/file_handlers/file_handlers_parser.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/input_ime/input_components_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/extensions/api/input_ime/input_components_handler.cc View 6 chunks +31 lines, -35 lines 0 comments Download
M chrome/common/extensions/api/omnibox/omnibox_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/extensions/api/omnibox/omnibox_handler.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/speech/tts_engine_manifest_handler.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 3 chunks +2 lines, -16 lines 0 comments Download
M chrome/common/extensions/manifest.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_handler.h View 1 2 3 4 1 chunk +22 lines, -29 lines 0 comments Download
M chrome/common/extensions/manifest_handler.cc View 1 5 chunks +23 lines, -27 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_web_accessible_resources_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/manifest_url_handler.h View 5 chunks +5 lines, -15 lines 0 comments Download
M chrome/common/extensions/manifest_url_handler.cc View 6 chunks +13 lines, -20 lines 0 comments Download
M chrome/common/extensions/web_accessible_resources_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/extensions/web_accessible_resources_handler.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/extensions/web_intents_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/extensions/web_intents_handler.cc View 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yoyo Zhou
This is the revised interface to ManifestHandler, per discussion in https://chromiumcodereview.appspot.com/12042096/
7 years, 10 months ago (2013-01-29 00:19:57 UTC) #1
Matt Perry
Mostly LGTM - some small comments https://codereview.chromium.org/12084034/diff/1/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://codereview.chromium.org/12084034/diff/1/chrome/common/extensions/extension.cc#newcode2395 chrome/common/extensions/extension.cc:2395: ManifestHandler::GetHandlers(manifest()); Rather than ...
7 years, 10 months ago (2013-01-29 00:58:47 UTC) #2
Yoyo Zhou
https://codereview.chromium.org/12084034/diff/1/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://codereview.chromium.org/12084034/diff/1/chrome/common/extensions/extension.cc#newcode2395 chrome/common/extensions/extension.cc:2395: ManifestHandler::GetHandlers(manifest()); On 2013/01/29 00:58:47, Matt Perry wrote: > Rather ...
7 years, 10 months ago (2013-01-29 04:32:41 UTC) #3
Matt Perry
lgtm https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc File chrome/common/extensions/manifest_handler.cc (right): https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc#newcode43 chrome/common/extensions/manifest_handler.cc:43: handler->AlwaysParseForType(extension->GetType())) Why create a temporary set? Can't you ...
7 years, 10 months ago (2013-01-29 20:59:25 UTC) #4
Yoyo Zhou
https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc File chrome/common/extensions/manifest_handler.cc (right): https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc#newcode43 chrome/common/extensions/manifest_handler.cc:43: handler->AlwaysParseForType(extension->GetType())) On 2013/01/29 20:59:26, Matt Perry wrote: > Why ...
7 years, 10 months ago (2013-01-29 21:01:05 UTC) #5
Matt Perry
https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc File chrome/common/extensions/manifest_handler.cc (right): https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc#newcode43 chrome/common/extensions/manifest_handler.cc:43: handler->AlwaysParseForType(extension->GetType())) On 2013/01/29 21:01:05, Yoyo Zhou wrote: > On ...
7 years, 10 months ago (2013-01-29 21:03:59 UTC) #6
Matt Perry
https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc File chrome/common/extensions/manifest_handler.cc (right): https://codereview.chromium.org/12084034/diff/15004/chrome/common/extensions/manifest_handler.cc#newcode43 chrome/common/extensions/manifest_handler.cc:43: handler->AlwaysParseForType(extension->GetType())) On 2013/01/29 21:03:59, Matt Perry wrote: > On ...
7 years, 10 months ago (2013-01-29 21:08:05 UTC) #7
Yoyo Zhou
By the way, I was thinking it would be more correct to use the feature ...
7 years, 10 months ago (2013-01-29 21:08:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/12084034/15005
7 years, 10 months ago (2013-01-29 21:26:22 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-01-30 00:01:20 UTC) #10
Message was sent while issue was closed.
Change committed as 179470

Powered by Google App Engine
This is Rietveld 408576698