Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorSession.cpp

Issue 1979183002: Remove OwnPtr::release() calls in core/ (part 3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698