diff options
author | kalman <kalman@chromium.org> | 2015-08-03 10:37:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-03 17:39:13 +0000 |
commit | 68c06a78f74212907faafd985b0bdee67a6d4120 (patch) | |
tree | c464355b5949866920710d8436140059e08cdda4 /extensions/renderer/messaging_bindings.cc | |
parent | 3e2da6cc92da25757ec456d56c0ce4d84531ed1a (diff) | |
download | chromium_src-68c06a78f74212907faafd985b0bdee67a6d4120.zip chromium_src-68c06a78f74212907faafd985b0bdee67a6d4120.tar.gz chromium_src-68c06a78f74212907faafd985b0bdee67a6d4120.tar.bz2 |
Convert extensions::SafeBuiltins from a v8::Extension to a NativeHandler.
This removes the last v8::Extension in extensions code. It's also needed to
support extension bindings in worker contexts, which don't support registering
v8::Extensions.
BUG=383974, 501569
R=rdevlin.cronin@chromium.org, jochen@chromium.org
Review URL: https://codereview.chromium.org/1262983003
Cr-Commit-Position: refs/heads/master@{#341545}
Diffstat (limited to 'extensions/renderer/messaging_bindings.cc')
-rw-r--r-- | extensions/renderer/messaging_bindings.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/renderer/messaging_bindings.cc b/extensions/renderer/messaging_bindings.cc index 1e0f6e2..adb6a98 100644 --- a/extensions/renderer/messaging_bindings.cc +++ b/extensions/renderer/messaging_bindings.cc @@ -55,7 +55,7 @@ namespace extensions { using v8_helpers::ToV8String; using v8_helpers::ToV8StringUnsafe; -using v8_helpers::IsEmptyOrUndefied; +using v8_helpers::IsEmptyOrUndefined; namespace { @@ -365,7 +365,7 @@ void DispatchOnConnectToScriptContext( script_context->module_system()->CallModuleMethod( "messaging", "dispatchOnConnect", arraysize(arguments), arguments); - if (!IsEmptyOrUndefied(retval)) { + if (!IsEmptyOrUndefined(retval)) { CHECK(retval->IsBoolean()); *port_created |= retval.As<v8::Boolean>()->Value(); } else { @@ -388,7 +388,7 @@ void DeliverMessageToScriptContext(const Message& message, 1, &port_id_handle); // Could be empty/undefined if an exception was thrown. // TODO(kalman): Should this be built into CallModuleMethod? - if (IsEmptyOrUndefied(has_port)) + if (IsEmptyOrUndefined(has_port)) return; CHECK(has_port->IsBoolean()); if (!has_port.As<v8::Boolean>()->Value()) |