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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: simplify Created 3 years, 10 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/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 96e83435a308d75ec39b2c25f292262b1f2607c3..6b296764ecb7ec7cd16e12cc461372e87b2e9c34 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2997,11 +2997,11 @@ ValueIterable<int>::IterationSource* Internals::startIteration(
return new InternalsIterationSource();
}
-bool Internals::isUseCounted(Document* document, int useCounterId) {
- if (useCounterId < 0 || useCounterId >= UseCounter::NumberOfFeatures)
+bool Internals::isUseCounted(Document* document, uint32_t feature) {
+ if (feature >= UseCounter::NumberOfFeatures)
return false;
return UseCounter::isCounted(*document,
- static_cast<UseCounter::Feature>(useCounterId));
+ static_cast<UseCounter::Feature>(feature));
}
bool Internals::isCSSPropertyUseCounted(Document* document,
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698