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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 2894063002: Expose UseCounter::Feature enum out of blink as WebFeature (Closed)
Patch Set: Initial check in Created 3 years, 7 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/web/ServiceWorkerGlobalScopeProxy.h
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
index b95a01b6122b267585add83813693fe928bab666..8a4ab59e2543ea35a0c321f101f30bdb19bdd4c2 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
@@ -135,8 +135,15 @@ class ServiceWorkerGlobalScopeProxy final
int64_t decoded_body_length) override;
// WorkerReportingProxy overrides:
+ // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature.
void CountFeature(UseCounter::Feature) override;
+ void CountFeature(WebFeature feature) override {
+ return CountFeature(static_cast<UseCounter::Feature>(feature));
+ }
void CountDeprecation(UseCounter::Feature) override;
+ void CountDeprecation(WebFeature feature) override {
+ return CountDeprecation(static_cast<UseCounter::Feature>(feature));
+ }
void ReportException(const String& error_message,
std::unique_ptr<SourceLocation>,
int exception_id) override;

Powered by Google App Engine
This is Rietveld 408576698