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

Issue 19730002: V8ValueConverter for the activity logger that does not invoke interceptors and (Closed)

Created:
7 years, 5 months ago by pmarch
Modified:
7 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, jamesr
Visibility:
Public.

Description

V8ValueConverter for the activity logger that does not invoke interceptors and accessors when converting V8 values to base values. BUG=260978, 259093 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217032

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : nits #

Patch Set 4 : a nit #

Total comments: 8

Patch Set 5 : test fix and comments #

Total comments: 1

Patch Set 6 : fixing comments #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : Rebase #

Patch Set 13 : Updated comment, deleted redundant code after rebase #

Total comments: 17

Patch Set 14 : Ben's comments #

Total comments: 14

Patch Set 15 : Ben's comments, fix for mac compilation #

Total comments: 2

Patch Set 16 : Dan's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -6 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/extensions/activity_log_converter_strategy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/activity_log_converter_strategy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/activity_log_converter_strategy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +158 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/api_activity_logger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/dom_activity_logger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/activity_log_private/test/test.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/renderer/v8_value_converter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +17 lines, -0 lines 0 comments Download
M content/renderer/v8_value_converter_impl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/v8_value_converter_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 71 (0 generated)
pmarch
HI Adrienne and Ankur Could you please review this CL. Thanks
7 years, 5 months ago (2013-07-18 16:12:30 UTC) #1
felt
Hi Petr, It looks like the end to end test is failing now, you'll need ...
7 years, 5 months ago (2013-07-18 17:28:20 UTC) #2
pmarch
updated end-to-end tests https://codereview.chromium.org/19730002/diff/19001/chrome/renderer/extensions/activity_log_value_converter.h File chrome/renderer/extensions/activity_log_value_converter.h (right): https://codereview.chromium.org/19730002/diff/19001/chrome/renderer/extensions/activity_log_value_converter.h#newcode18 chrome/renderer/extensions/activity_log_value_converter.h:18: class ActivityLogValueConverter { On 2013/07/18 17:28:20, ...
7 years, 5 months ago (2013-07-18 20:42:03 UTC) #3
felt
lgtm If you don't already have an owner reviewer in mind, Ben Kalman might be ...
7 years, 5 months ago (2013-07-18 22:04:33 UTC) #4
pmarch
Hi Ben Could you please review my CL Thanks
7 years, 5 months ago (2013-07-18 22:31:52 UTC) #5
not at google - send to devlin
I think i'll need to spend some more time with this patch (I don't fully ...
7 years, 5 months ago (2013-07-19 01:15:45 UTC) #6
pmarch
On 2013/07/19 01:15:45, kalman wrote: > I think i'll need to spend some more time ...
7 years, 5 months ago (2013-07-19 02:57:35 UTC) #7
pmarch
On 2013/07/19 02:57:35, pmarch wrote: > On 2013/07/19 01:15:45, kalman wrote: > > I think ...
7 years, 5 months ago (2013-07-19 17:29:24 UTC) #8
not at google - send to devlin
On 2013/07/19 17:29:24, pmarch wrote: > On 2013/07/19 02:57:35, pmarch wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 17:36:21 UTC) #9
pmarch
On 2013/07/19 17:36:21, kalman wrote: > On 2013/07/19 17:29:24, pmarch wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 20:45:20 UTC) #10
not at google - send to devlin
> > Ben, > > I discussed this issue with my manager and we came ...
7 years, 5 months ago (2013-07-19 20:54:05 UTC) #11
pmarch
On 2013/07/19 20:54:05, kalman wrote: > > > > Ben, > > > > I ...
7 years, 5 months ago (2013-07-19 22:08:18 UTC) #12
pmarch
On 2013/07/19 22:08:18, pmarch wrote: > On 2013/07/19 20:54:05, kalman wrote: > > > > ...
7 years, 5 months ago (2013-07-19 22:11:04 UTC) #13
not at google - send to devlin
On 2013/07/19 22:08:18, pmarch wrote: > On 2013/07/19 20:54:05, kalman wrote: > > > > ...
7 years, 5 months ago (2013-07-19 22:14:04 UTC) #14
not at google - send to devlin
On 2013/07/19 22:14:04, kalman wrote: > On 2013/07/19 22:08:18, pmarch wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 22:14:28 UTC) #15
pmarch
On 2013/07/19 22:14:28, kalman wrote: > On 2013/07/19 22:14:04, kalman wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 22:32:36 UTC) #16
not at google - send to devlin
On 2013/07/19 22:32:36, pmarch wrote: > On 2013/07/19 22:14:28, kalman wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 22:35:41 UTC) #17
pmarch
On 2013/07/19 22:35:41, kalman wrote: > On 2013/07/19 22:32:36, pmarch wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 22:48:17 UTC) #18
not at google - send to devlin
On 2013/07/19 22:48:17, pmarch wrote: > On 2013/07/19 22:35:41, kalman wrote: > > On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 23:01:27 UTC) #19
pmarch
Ben, Can you look at the new version of the CL. Thank you.
7 years, 5 months ago (2013-07-22 21:36:36 UTC) #20
not at google - send to devlin
not really what I meant, there isn't any difference between this and the code you ...
7 years, 5 months ago (2013-07-22 21:44:57 UTC) #21
pmarch
I've modified the CL to potentially handle the case of convert({ nested: { object: { ...
7 years, 5 months ago (2013-07-22 23:06:54 UTC) #22
not at google - send to devlin
I am very sorry to keep going back and forth on this. But I'm confused ...
7 years, 5 months ago (2013-07-23 21:11:13 UTC) #23
pmarch
On 2013/07/23 21:11:13, kalman wrote: > I am very sorry to keep going back and ...
7 years, 5 months ago (2013-07-23 21:43:39 UTC) #24
not at google - send to devlin
We might as well just not convert array indices with getters on them, save the ...
7 years, 5 months ago (2013-07-23 21:45:21 UTC) #25
not at google - send to devlin
TBH maybe we shouldn't _ever_ be invoking getters for properties (arrays or objects) except when ...
7 years, 5 months ago (2013-07-23 21:48:33 UTC) #26
felt
On 2013/07/23 21:43:39, pmarch wrote: > On 2013/07/23 21:11:13, kalman wrote: > > I am ...
7 years, 5 months ago (2013-07-23 21:54:48 UTC) #27
pmarch
On 2013/07/23 21:48:33, kalman wrote: > TBH maybe we shouldn't _ever_ be invoking getters for ...
7 years, 5 months ago (2013-07-23 21:55:42 UTC) #28
not at google - send to devlin
On 2013/07/23 21:55:42, pmarch wrote: > On 2013/07/23 21:48:33, kalman wrote: > > TBH maybe ...
7 years, 5 months ago (2013-07-23 22:05:04 UTC) #29
pmarch
On 2013/07/23 22:05:04, kalman wrote: > On 2013/07/23 21:55:42, pmarch wrote: > > On 2013/07/23 ...
7 years, 5 months ago (2013-07-23 22:23:38 UTC) #30
not at google - send to devlin
> > I agree being explicit with SetInvokeGetters(true) is better. This will also > allow ...
7 years, 5 months ago (2013-07-23 22:27:45 UTC) #31
pmarch
On 2013/07/23 22:27:45, kalman wrote: > > > > I agree being explicit with SetInvokeGetters(true) ...
7 years, 5 months ago (2013-07-24 01:16:11 UTC) #32
not at google - send to devlin
sounds like it'll help you now - so that'd be great, thanks.
7 years, 5 months ago (2013-07-24 01:24:55 UTC) #33
felt
Hi Petr, I'm back from vacation/conference now. What's the current status of this CL?
7 years, 4 months ago (2013-07-29 17:13:17 UTC) #34
pmarch
On 2013/07/29 17:13:17, felt wrote: > Hi Petr, I'm back from vacation/conference now. What's the ...
7 years, 4 months ago (2013-07-29 17:39:17 UTC) #35
felt
On 2013/07/29 17:39:17, pmarch wrote: > On 2013/07/29 17:13:17, felt wrote: > > Hi Petr, ...
7 years, 4 months ago (2013-08-02 13:58:14 UTC) #36
felt
On 2013/08/02 13:58:14, felt wrote: > On 2013/07/29 17:39:17, pmarch wrote: > > On 2013/07/29 ...
7 years, 4 months ago (2013-08-07 00:01:25 UTC) #37
pmarch
On 2013/08/07 00:01:25, felt wrote: > On 2013/08/02 13:58:14, felt wrote: > > On 2013/07/29 ...
7 years, 4 months ago (2013-08-07 15:53:03 UTC) #38
not at google - send to devlin
On 2013/08/07 15:53:03, pmarch wrote: > On 2013/08/07 00:01:25, felt wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-07 16:42:48 UTC) #39
pmarch
On 2013/08/07 16:42:48, kalman wrote: > On 2013/08/07 15:53:03, pmarch wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 16:55:21 UTC) #40
not at google - send to devlin
On 2013/08/07 16:55:21, pmarch wrote: > On 2013/08/07 16:42:48, kalman wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 17:00:41 UTC) #41
felt
On 2013/08/07 17:00:41, kalman wrote: > On 2013/08/07 16:55:21, pmarch wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 17:07:38 UTC) #42
not at google - send to devlin
> After talking off-thread with Petr: my preference is to see at least some fix ...
7 years, 4 months ago (2013-08-07 17:14:40 UTC) #43
pmarch
On 2013/08/07 17:14:40, kalman wrote: > > After talking off-thread with Petr: my preference is ...
7 years, 4 months ago (2013-08-07 17:18:49 UTC) #44
not at google - send to devlin
On 2013/08/07 17:18:49, pmarch wrote: > On 2013/08/07 17:14:40, kalman wrote: > > > After ...
7 years, 4 months ago (2013-08-07 17:21:01 UTC) #45
pmarch
On 2013/08/07 17:21:01, kalman wrote: > On 2013/08/07 17:18:49, pmarch wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 17:26:03 UTC) #46
not at google - send to devlin
On 2013/08/07 17:26:03, pmarch wrote: > On 2013/08/07 17:21:01, kalman wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 17:30:24 UTC) #47
pmarch
On 2013/08/07 17:30:24, kalman wrote: > On 2013/08/07 17:26:03, pmarch wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 17:38:21 UTC) #48
not at google - send to devlin
> > > regarding (2), we still want to change interface for JSObject conversion, we ...
7 years, 4 months ago (2013-08-07 17:44:28 UTC) #49
pmarch
On 2013/08/07 17:44:28, kalman wrote: > > > > > regarding (2), we still want ...
7 years, 4 months ago (2013-08-07 17:52:51 UTC) #50
not at google - send to devlin
On 2013/08/07 17:52:51, pmarch wrote: > On 2013/08/07 17:44:28, kalman wrote: > > > > ...
7 years, 4 months ago (2013-08-07 18:43:17 UTC) #51
not at google - send to devlin
On 2013/08/07 17:52:51, pmarch wrote: > On 2013/08/07 17:44:28, kalman wrote: > > > > ...
7 years, 4 months ago (2013-08-07 18:45:08 UTC) #52
felt
On 2013/08/07 18:45:08, kalman wrote: > On 2013/08/07 17:52:51, pmarch wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 19:33:39 UTC) #53
pmarch
On 2013/08/07 19:33:39, felt wrote: > On 2013/08/07 18:45:08, kalman wrote: > > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 21:50:40 UTC) #54
not at google - send to devlin
https://codereview.chromium.org/19730002/diff/102002/chrome/renderer/extensions/activity_log_converter_strategy.cc File chrome/renderer/extensions/activity_log_converter_strategy.cc (right): https://codereview.chromium.org/19730002/diff/102002/chrome/renderer/extensions/activity_log_converter_strategy.cc#newcode30 chrome/renderer/extensions/activity_log_converter_strategy.cc:30: add a comment about the array index stuff we've ...
7 years, 4 months ago (2013-08-07 22:07:55 UTC) #55
not at google - send to devlin
https://codereview.chromium.org/19730002/diff/102002/chrome/renderer/extensions/activity_log_converter_strategy.cc File chrome/renderer/extensions/activity_log_converter_strategy.cc (right): https://codereview.chromium.org/19730002/diff/102002/chrome/renderer/extensions/activity_log_converter_strategy.cc#newcode46 chrome/renderer/extensions/activity_log_converter_strategy.cc:46: *out = new base::StringValue(std::string(*utf8, utf8.length())); On 2013/08/07 22:07:56, kalman ...
7 years, 4 months ago (2013-08-07 22:08:40 UTC) #56
pmarch
addressed Ben's comments https://codereview.chromium.org/19730002/diff/102002/chrome/renderer/extensions/activity_log_converter_strategy.cc File chrome/renderer/extensions/activity_log_converter_strategy.cc (right): https://codereview.chromium.org/19730002/diff/102002/chrome/renderer/extensions/activity_log_converter_strategy.cc#newcode30 chrome/renderer/extensions/activity_log_converter_strategy.cc:30: On 2013/08/07 22:07:56, kalman wrote: > ...
7 years, 4 months ago (2013-08-08 00:53:07 UTC) #57
not at google - send to devlin
lgtm https://codereview.chromium.org/19730002/diff/120001/chrome/renderer/extensions/activity_log_converter_strategy.cc File chrome/renderer/extensions/activity_log_converter_strategy.cc (right): https://codereview.chromium.org/19730002/diff/120001/chrome/renderer/extensions/activity_log_converter_strategy.cc#newcode33 chrome/renderer/extensions/activity_log_converter_strategy.cc:33: // callback. it would be even nicer to ...
7 years, 4 months ago (2013-08-08 01:02:20 UTC) #58
pmarch
Thanks Ben https://codereview.chromium.org/19730002/diff/120001/chrome/renderer/extensions/activity_log_converter_strategy.cc File chrome/renderer/extensions/activity_log_converter_strategy.cc (right): https://codereview.chromium.org/19730002/diff/120001/chrome/renderer/extensions/activity_log_converter_strategy.cc#newcode33 chrome/renderer/extensions/activity_log_converter_strategy.cc:33: // callback. On 2013/08/08 01:02:21, kalman wrote: ...
7 years, 4 months ago (2013-08-08 03:20:18 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/19730002/132001
7 years, 4 months ago (2013-08-08 16:45:36 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/19730002/132001
7 years, 4 months ago (2013-08-08 16:48:50 UTC) #61
pmarch
Hi, could you please review owned files jamesr: content/renderer/v8_value_converter_impl.cc content/renderer/v8_value_converter_impl.h joi: content/public/renderer/v8_value_converter.h Thanks
7 years, 4 months ago (2013-08-08 18:30:24 UTC) #62
jamesr
I don't think I understand V8 internals well enough to understand the implications of this ...
7 years, 4 months ago (2013-08-09 21:10:24 UTC) #63
dcarney
lgtm (wrt the v8 api calls) see comment though https://codereview.chromium.org/19730002/diff/132001/chrome/renderer/extensions/activity_log_converter_strategy.cc File chrome/renderer/extensions/activity_log_converter_strategy.cc (right): https://codereview.chromium.org/19730002/diff/132001/chrome/renderer/extensions/activity_log_converter_strategy.cc#newcode46 chrome/renderer/extensions/activity_log_converter_strategy.cc:46: ...
7 years, 4 months ago (2013-08-12 08:47:03 UTC) #64
Jói
The interface change in //content/public LGTM, but I don't know much about V8 so please ...
7 years, 4 months ago (2013-08-12 10:23:46 UTC) #65
jochen (gone - plz use gerrit)
I asked Dan to do the V8 specific code review, so please don't wait for ...
7 years, 4 months ago (2013-08-12 12:08:12 UTC) #66
pmarch
https://codereview.chromium.org/19730002/diff/132001/chrome/renderer/extensions/activity_log_converter_strategy.cc File chrome/renderer/extensions/activity_log_converter_strategy.cc (right): https://codereview.chromium.org/19730002/diff/132001/chrome/renderer/extensions/activity_log_converter_strategy.cc#newcode46 chrome/renderer/extensions/activity_log_converter_strategy.cc:46: name = v8::String::Concat(name, value->ToObject()->GetConstructorName()); On 2013/08/12 08:47:04, dcarney wrote: ...
7 years, 4 months ago (2013-08-12 13:39:25 UTC) #67
pmarch
On 2013/08/12 12:08:12, jochen wrote: > I asked Dan to do the V8 specific code ...
7 years, 4 months ago (2013-08-12 13:41:13 UTC) #68
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-12 13:44:28 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pmarch@chromium.org/19730002/153001
7 years, 4 months ago (2013-08-12 13:46:49 UTC) #70
commit-bot: I haz the power
7 years, 4 months ago (2013-08-12 17:51:54 UTC) #71
Message was sent while issue was closed.
Change committed as 217032

Powered by Google App Engine
This is Rietveld 408576698