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

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

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: tweak 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..4772c5fb949702f6ab8ec7e7ec25980cb885ad9b 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2997,8 +2997,8 @@ 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 useCounterId) {
+ if (useCounterId >= UseCounter::NumberOfFeatures)
return false;
return UseCounter::isCounted(*document,
static_cast<UseCounter::Feature>(useCounterId));

Powered by Google App Engine
This is Rietveld 408576698