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

Unified Diff: Source/bindings/templates/attributes.cpp

Issue 213783002: Pass current value of attributes to WebDOMActivityLogger Setter logs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/attributes.cpp
diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp
index 78e926b5eec318616c47ebbee81b3bab0cf4247a..bc8b8c8fbcd3ab32c15e237a5313e339ddff184e 100644
--- a/Source/bindings/templates/attributes.cpp
+++ b/Source/bindings/templates/attributes.cpp
@@ -166,7 +166,7 @@ v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info
{% if world_suffix in attribute.activity_logging_world_list_for_getter %}
V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext());
if (contextData && contextData->activityLogger())
- contextData->activityLogger()->log("{{interface_name}}.{{attribute.name}}", 0, 0, "Getter");
+ contextData->activityLogger()->logGetter("{{interface_name}}.{{attribute.name}}");
{% endif %}
{% if attribute.has_custom_getter %}
{{v8_class}}::{{attribute.name}}AttributeGetterCustom(info);
@@ -300,8 +300,8 @@ v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
{% if world_suffix in attribute.activity_logging_world_list_for_setter %}
V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext());
if (contextData && contextData->activityLogger()) {
- v8::Handle<v8::Value> loggerArg[] = { jsValue };
- contextData->activityLogger()->log("{{interface_name}}.{{attribute.name}}", 1, &loggerArg[0], "Setter");
+ v8::Handle<v8::Value> HACK;
Devlin 2014/03/26 22:58:42 I'm a bit at a loss for how to best get the curren
Nils Barth (inactive) 2014/03/27 02:20:08 ? Can't you just pass in jsValue (sans array), as
Nils Barth (inactive) 2014/03/27 02:39:50 OIC, sorry, the point of this CL is to add this va
Nils Barth (inactive) 2014/03/27 02:51:25 Simplest would be if you could just call the *Attr
Devlin 2014/03/27 20:35:30 (I've never worked on the bindings before, so I mi
pmarch 2014/04/17 16:10:58 I am not an expert on this, but it looks to me tha
+ contextData->activityLogger()->logSetter("{{interface_name}}.{{attribute.name}}", jsValue, HACK);
}
{% endif %}
{% if attribute.is_custom_element_callbacks or attribute.is_reflect %}
« no previous file with comments | « no previous file | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698