summaryrefslogtreecommitdiff
path: root/chromium/extensions/renderer/bindings/api_binding.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/renderer/bindings/api_binding.h')
-rw-r--r--chromium/extensions/renderer/bindings/api_binding.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/extensions/renderer/bindings/api_binding.h b/chromium/extensions/renderer/bindings/api_binding.h
index e62af331e4d..63b27c47f3f 100644
--- a/chromium/extensions/renderer/bindings/api_binding.h
+++ b/chromium/extensions/renderer/bindings/api_binding.h
@@ -83,6 +83,11 @@ class APIBinding {
APIBindingHooks* hooks() { return binding_hooks_.get(); }
+ // Global bool to allow for testing of promise support.
+ // TODO(tjudkins): Replace this with a runtime determined condition gated on
+ // MV3.
+ static bool enable_promise_support_for_testing;
+
private:
// Initializes the object_template_ for this API. Called lazily when the
// first instance is created.