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

Unified Diff: Source/bindings/scripts/v8_utilities.py

Issue 213783002: Pass current value of attributes to WebDOMActivityLogger Setter logs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Working Version Created 6 years, 8 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
Index: Source/bindings/scripts/v8_utilities.py
diff --git a/Source/bindings/scripts/v8_utilities.py b/Source/bindings/scripts/v8_utilities.py
index 67b03209fbab876c98118ed9ae23974e75fc88f5..38da78aa775c30687ab035d8af00b75dcf0b2470 100644
--- a/Source/bindings/scripts/v8_utilities.py
+++ b/Source/bindings/scripts/v8_utilities.py
@@ -149,6 +149,12 @@ def activity_logging_world_list(member, access_type=None):
return set(['', 'ForMainWorld']) # endswith('ForAllWorlds')
+def activity_old_value_for_setter(member):
+ """Returns true if the log of the setter should include the original value."""
+ return ('ActivityLogging' in member.extended_attributes and
+ member.extended_attributes['ActivityLogging']
+ .find('IncludeOldValueForSetter') != -1)
abarth-chromium 2014/04/22 23:35:51 This line of code is a sign that IncludeOldValueFo
Devlin 2014/04/23 01:10:03 Done.
Nils Barth (inactive) 2014/04/23 01:12:02 Python note: You can use |in| for substring search
Devlin 2014/04/23 01:31:43 Already fixed, but thanks for the tips! :)
+
# [CallWith]
CALL_WITH_ARGUMENTS = {
'ScriptState': 'state',

Powered by Google App Engine
This is Rietveld 408576698