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

Issue 2765853004: [Gin] Add Arguments::GetHolderCreationContext() (Closed)

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

Description

[Gin] Add Arguments::GetHolderCreationContext() Currently, in order to get at the creation context of the holder, one has to do the following: v8::Local<v8::Object> holder; arguments->GetHolder(&holder); v8::Local<v8::Context> context = holder->CreationContext(); This isn't terrible, but it's a little verbose when all we really want is FunctionCallbackInfo::Holder::CreationContext(). Add a method to get at it directly. BUG=None Review-Url: https://codereview.chromium.org/2765853004 Cr-Commit-Position: refs/heads/master@{#459251} Committed: https://chromium.googlesource.com/chromium/src/+/d982fdfedc982d24055caff18bb07852116d5fda

Patch Set 1 #

Patch Set 2 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -10 lines) Patch
M extensions/renderer/chrome_setting.cc View 3 chunks +3 lines, -10 lines 0 comments Download
M gin/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M gin/arguments.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gin/arguments.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A gin/arguments_unittest.cc View 1 1 chunk +67 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
Devlin
Jeremy, WDYT of something like this to clean up all those GetHolder() redundancies? (If it ...
3 years, 9 months ago (2017-03-22 00:06:47 UTC) #6
jbroman
Seems sane to me. This corresponds to the notion of the "relevant realm" in DOM ...
3 years, 9 months ago (2017-03-22 17:44:37 UTC) #7
Devlin
Jochen, mind taking a look?
3 years, 9 months ago (2017-03-22 18:02:58 UTC) #9
jochen (gone - plz use gerrit)
can you add a unit test for this? otherwise, lgtm
3 years, 9 months ago (2017-03-23 15:51:42 UTC) #10
Devlin
On 2017/03/23 15:51:42, jochen wrote: > can you add a unit test for this? Done.
3 years, 9 months ago (2017-03-23 22:09:00 UTC) #16
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/2765853004/40001
3 years, 9 months ago (2017-03-23 22:10:08 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 22:18:58 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d982fdfedc982d24055caff18bb0...

Powered by Google App Engine
This is Rietveld 408576698