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

Unified Diff: third_party/WebKit/Source/core/experiments/Experiments.h

Issue 1541983003: Force all experiment enabled checks to use ExperimentalFeatures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix link error under GN and rename entry method 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/core/experiments/Experiments.h
diff --git a/third_party/WebKit/Source/core/experiments/Experiments.h b/third_party/WebKit/Source/core/experiments/Experiments.h
index 868a6301cf52352c76602cd908c7cee1eeeae6d6..53e659a313fc39332cd7a9095761d856497ce34b 100644
--- a/third_party/WebKit/Source/core/experiments/Experiments.h
+++ b/third_party/WebKit/Source/core/experiments/Experiments.h
@@ -24,14 +24,18 @@ namespace blink {
// TODO(chasej): Link to documentation, or provide more detail on keys, .etc
class CORE_EXPORT Experiments {
public:
- static bool isApiEnabled(ExecutionContext*, const String& apiName, String& errorMessage);
// Creates a NotSupportedError exception with a message explaining to
// external developers why the API is disabled and how to join API
// experiments.
static DOMException* createApiDisabledException(const String& apiName);
private:
+ friend class ExperimentalFeatures;
+ friend class ExperimentsTest;
+
explicit Experiments();
+
+ static bool isApiEnabled(ExecutionContext*, const String& apiName, String* errorMessage);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698