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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp

Issue 1579573002: Count feature usage for the current context instead of the calling one (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
index 055380e739d8c762fe8d7f81f764ac74b80c2cbe..14bf780860db7ed8ce7568b4af3946974d72b54e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -92,9 +92,9 @@ static void useCounterCallback(v8::Isolate* isolate, v8::Isolate::UseCounterFeat
return;
}
if (deprecated)
- UseCounter::countDeprecation(callingExecutionContext(isolate), blinkFeature);
+ UseCounter::countDeprecation(currentExecutionContext(isolate), blinkFeature);
else
- UseCounter::count(callingExecutionContext(isolate), blinkFeature);
+ UseCounter::count(currentExecutionContext(isolate), blinkFeature);
}
V8PerIsolateData::V8PerIsolateData()

Powered by Google App Engine
This is Rietveld 408576698