Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| index 8b8b7f8c213bc48b14f61c07630e46f8d9b0dd02..ee42dbf20eab0e2387e1dae0fed89a54db780408 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp |
| @@ -34,6 +34,7 @@ |
| #include "bindings/core/v8/ScriptState.h" |
| #include "bindings/core/v8/V8Binding.h" |
| #include "bindings/core/v8/V8ObjectConstructor.h" |
| +#include "core/dom/Modulator.h" |
| #include "platform/InstanceCounters.h" |
| #include "wtf/PtrUtil.h" |
| #include "wtf/StringExtras.h" |
| @@ -48,7 +49,7 @@ V8PerContextData::V8PerContextData(v8::Local<v8::Context> context) |
| m_constructorMap(m_isolate), |
| m_contextHolder(WTF::makeUnique<gin::ContextHolder>(m_isolate)), |
| m_context(m_isolate, context), |
| - m_activityLogger(0) { |
| + m_activityLogger(nullptr) { |
| m_contextHolder->SetContext(context); |
| v8::Context::Scope contextScope(context); |
| @@ -174,4 +175,8 @@ void V8PerContextData::addCustomElementBinding( |
| m_customElementBindings.push_back(std::move(binding)); |
| } |
| +void V8PerContextData::setModulator(Modulator* modulator) { |
| + m_modulator = modulator; |
|
dominicc (has gone to gerrit)
2017/01/11 03:23:47
DCHECK(!m_modulator); ?
kouhei (in TOK)
2017/01/17 05:26:13
Done.
|
| +} |
| + |
| } // namespace blink |