Commit 2921959d authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Extensions Bindings] Remove guards around getInternalApi in //chromecast

Custom bindings in JS files used to require guards around
getInternalApi, since it was only set if native extension bindings were
used. Now that native extension bindings are the only form of bindings,
we can remove the guards and JS versions of the same invocations.

Bug: 938998

Change-Id: I0c79d23f5fe759b86ea5abf7d168df777d844753
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1544090Reviewed-by: default avatarLuke Halliwell <halliwell@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645553}
parent 09d78f7f
...@@ -3,10 +3,7 @@ ...@@ -3,10 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
var AutomationEvent = require('automationEvent').AutomationEvent; var AutomationEvent = require('automationEvent').AutomationEvent;
var automationInternal = var automationInternal = getInternalApi('automationInternal');
getInternalApi ?
getInternalApi('automationInternal') :
require('binding').Binding.create('automationInternal').generate();
var exceptionHandler = require('uncaught_exception_handler'); var exceptionHandler = require('uncaught_exception_handler');
var natives = requireNative('automationInternal'); var natives = requireNative('automationInternal');
......
...@@ -5,10 +5,7 @@ ...@@ -5,10 +5,7 @@
// Custom bindings for the automation API. // Custom bindings for the automation API.
var AutomationNode = require('automationNode').AutomationNode; var AutomationNode = require('automationNode').AutomationNode;
var AutomationRootNode = require('automationNode').AutomationRootNode; var AutomationRootNode = require('automationNode').AutomationRootNode;
var automationInternal = var automationInternal = getInternalApi('automationInternal');
getInternalApi ?
getInternalApi('automationInternal') :
require('binding').Binding.create('automationInternal').generate();
var exceptionHandler = require('uncaught_exception_handler'); var exceptionHandler = require('uncaught_exception_handler');
var logging = requireNative('logging'); var logging = requireNative('logging');
var nativeAutomationInternal = requireNative('automationInternal'); var nativeAutomationInternal = requireNative('automationInternal');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment