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

Unified Diff: Source/core/frame/UseCounter.cpp

Issue 901143002: Support deprecation warnings in shared/service workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/core/frame/UseCounter.cpp
diff --git a/Source/core/frame/UseCounter.cpp b/Source/core/frame/UseCounter.cpp
index 61b61417748a971016950f422b4060f57acbeb58..db50833289e745bf13fb8c0b3d8cea76bccb362b 100644
--- a/Source/core/frame/UseCounter.cpp
+++ b/Source/core/frame/UseCounter.cpp
@@ -581,7 +581,7 @@ void UseCounter::count(const Frame* frame, Feature feature)
if (!host)
return;
- ASSERT(host->useCounter().deprecationMessage(feature).isEmpty());
+ ASSERT(deprecationMessage(feature).isEmpty());
host->useCounter().recordMeasurement(feature);
}
@@ -632,8 +632,8 @@ void UseCounter::countDeprecation(const LocalFrame* frame, Feature feature)
return;
if (host->useCounter().recordMeasurement(feature)) {
- ASSERT(!host->useCounter().deprecationMessage(feature).isEmpty());
- frame->console().addMessage(ConsoleMessage::create(DeprecationMessageSource, WarningMessageLevel, host->useCounter().deprecationMessage(feature)));
+ ASSERT(!deprecationMessage(feature).isEmpty());
+ frame->console().addMessage(ConsoleMessage::create(DeprecationMessageSource, WarningMessageLevel, deprecationMessage(feature)));
}
}

Powered by Google App Engine
This is Rietveld 408576698