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

Issue 10566018: Initial work to remove the notion of all extension message payloads as strings. (Closed)

Created:
8 years, 6 months ago by Garret Kelly
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Initial work to remove the notion of all extension message payloads as strings. The internal IPC events already route ListValues around, however a _lot_ of places have assumed that the message payload string will be eventually treated as a JSON string. This change allows arbitrary Value types to be passed in message payloads while still handling the case of users of the API passing in hard-coded JSON strings. BUG=133190 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142785

Patch Set 1 #

Patch Set 2 : Removing parts of a different change. #

Total comments: 8

Patch Set 3 : Review changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -22 lines) Patch
M chrome/browser/extensions/api/api_resource_event_notifier.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_event_router.h View 1 2 4 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 1 2 9 chunks +67 lines, -14 lines 0 comments Download
M chrome/renderer/resources/extensions/event.js View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/schema_utils.js View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Garret Kelly
8 years, 6 months ago (2012-06-17 00:33:00 UTC) #1
Garret Kelly
Very much depends on 133190.
8 years, 6 months ago (2012-06-17 00:35:57 UTC) #2
bryeung
lgtm
8 years, 6 months ago (2012-06-18 03:12:21 UTC) #3
asargent_no_longer_on_chrome
LGTM https://chromiumcodereview.appspot.com/10566018/diff/3001/chrome/browser/extensions/extension_event_router.cc File chrome/browser/extensions/extension_event_router.cc (right): https://chromiumcodereview.appspot.com/10566018/diff/3001/chrome/browser/extensions/extension_event_router.cc#newcode126 chrome/browser/extensions/extension_event_router.cc:126: args.Set(1, event_args.DeepCopy()); It's a bummer to have to ...
8 years, 6 months ago (2012-06-18 16:25:30 UTC) #4
miket_OOO
Great! LGTM.
8 years, 6 months ago (2012-06-18 16:32:12 UTC) #5
Garret Kelly
I'll fire this to the CQ if there's no other issues. http://codereview.chromium.org/10566018/diff/3001/chrome/browser/extensions/extension_event_router.cc File chrome/browser/extensions/extension_event_router.cc (right): ...
8 years, 6 months ago (2012-06-18 18:15:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10566018/6003
8 years, 6 months ago (2012-06-18 18:21:10 UTC) #7
commit-bot: I haz the power
8 years, 6 months ago (2012-06-18 19:37:33 UTC) #8
Change committed as 142785

Powered by Google App Engine
This is Rietveld 408576698