| Index: third_party/WebKit/Source/core/inspector/InspectorSession.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
|
| index bfde487a09764dc241eae092ddf6a8ff2c432257..ab986577ca7ab0985ffaa2a56bc3662b77c938a8 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
|
| @@ -50,7 +50,7 @@ void InspectorSession::attach(V8InspectorSession* v8Session, const String* saved
|
| if (restore) {
|
| OwnPtr<protocol::Value> state = protocol::parseJSON(*savedState);
|
| if (state)
|
| - m_state = protocol::DictionaryValue::cast(state.release());
|
| + m_state = protocol::DictionaryValue::cast(std::move(state));
|
| if (!m_state)
|
| m_state = protocol::DictionaryValue::create();
|
| } else {
|
| @@ -138,7 +138,7 @@ void InspectorSession::scriptExecutionBlockedByCSP(const String& directiveText)
|
| ASSERT(isInstrumenting());
|
| OwnPtr<protocol::DictionaryValue> directive = protocol::DictionaryValue::create();
|
| directive->setString("directiveText", directiveText);
|
| - m_v8Session->breakProgramOnException(protocol::Debugger::Paused::ReasonEnum::CSPViolation, directive.release());
|
| + m_v8Session->breakProgramOnException(protocol::Debugger::Paused::ReasonEnum::CSPViolation, std::move(directive));
|
| }
|
|
|
| void InspectorSession::asyncTaskScheduled(const String& taskName, void* task)
|
|
|