summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/renderer/dispatcher.cc')
-rw-r--r--extensions/renderer/dispatcher.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index a8a2b3e..2c6ad7d 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -807,13 +807,9 @@ void Dispatcher::RegisterNativeHandlers(ModuleSystem* module_system,
scoped_ptr<NativeHandler>(new FileSystemNatives(context)));
// Custom bindings.
- // |dispatcher| is null in unit tests.
- const ScriptContextSet* script_context_set = dispatcher ?
- &dispatcher->script_context_set() : nullptr;
module_system->RegisterNativeHandler(
"app_window_natives",
- scoped_ptr<NativeHandler>(new AppWindowCustomBindings(
- script_context_set, context)));
+ scoped_ptr<NativeHandler>(new AppWindowCustomBindings(context)));
module_system->RegisterNativeHandler(
"blob_natives",
scoped_ptr<NativeHandler>(new BlobNativeHandler(context)));