DescriptionPre-req for adding usage counter to chrome.loadtimes:
Switch to SetAccessor, this adds a Getter where the Usage counter will be added subsequently.
A side effect of SetAccessor is that it subtly changes the behavior: previously loadtimes data fields were mutable and persisted modifications that updated the value programmatically (from javascript).
With this change, such modifications will not be persisted.
We think this is fine -- as we cannot think of scenarios where it makes sense to modify the values returned by chrome.loadtimes. Moreover this is a necessary step to get usage counts and move the deprecation further.
BUG=621512
Committed: https://crrev.com/99807eeee0d8426d239376d716cacba2a84cfddf
Cr-Commit-Position: refs/heads/master@{#408226}
Patch Set 1 #
Total comments: 1
Patch Set 2 : use ObjectTemplate and SetNativeDataProperty #
Total comments: 3
Patch Set 3 : Switch to using SetAccessor #
Total comments: 1
Patch Set 4 : fix indentation #Patch Set 5 : Add UseCounter for chrome.loadtimes deprecation #
Messages
Total messages: 28 (14 generated)
|