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

Issue 2937543002: [Extensions] Use gin::DataObjectBuilder in NotificationsNativeHandler (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 6 months ago
Reviewers:
jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, lazyboy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Use gin::DataObjectBuilder in NotificationsNativeHandler Right now, NotificationsNativeHandler::GetNotificationImageSizes() builds a DictionaryValue and then passes that to V8ValueConverter to convert it to a v8::Object. Instead, we can use gin::DataObjectBuilder, which should be faster (since it's much more lightweight, and doesn't require setting up a DictionaryValue we won't use - not to mention fewer heap allocations). BUG=None Review-Url: https://codereview.chromium.org/2937543002 Cr-Commit-Position: refs/heads/master@{#478778} Committed: https://chromium.googlesource.com/chromium/src/+/3280f87f0133f9b0c4f61c1b955fa290eb86ecbf

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -18 lines) Patch
M chrome/renderer/extensions/notifications_native_handler.cc View 1 2 chunks +24 lines, -18 lines 0 comments Download

Messages

Total messages: 15 (11 generated)
Devlin
jbroman@, mind taking a look? lazyboy@, FYI.
3 years, 6 months ago (2017-06-12 19:56:02 UTC) #8
jbroman
lgtm
3 years, 6 months ago (2017-06-12 20:33:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2937543002/20001
3 years, 6 months ago (2017-06-12 20:35:22 UTC) #12
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 21:50:33 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/3280f87f0133f9b0c4f61c1b955f...

Powered by Google App Engine
This is Rietveld 408576698