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

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

Issue 1745423002: DevTools: migrate protocol values from RefPtr to OwnPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/InspectorDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
index 008dd3e76a2178d01b2c777f4c412a7adfa10aa3..014e81937d0e6ac19cd020602aac532dd00d65bf 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -318,7 +318,7 @@ bool InspectorDebuggerAgent::isPaused()
void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directiveText)
{
- RefPtr<protocol::DictionaryValue> directive = protocol::DictionaryValue::create();
+ OwnPtr<protocol::DictionaryValue> directive = protocol::DictionaryValue::create();
directive->setString("directiveText", directiveText);
m_v8DebuggerAgent->breakProgramOnException(protocol::Debugger::Paused::ReasonEnum::CSPViolation, directive.release());
}
@@ -334,7 +334,7 @@ void InspectorDebuggerAgent::didExecuteScript()
}
// InspectorBaseAgent overrides.
-void InspectorDebuggerAgent::setState(PassRefPtr<protocol::DictionaryValue> state)
+void InspectorDebuggerAgent::setState(protocol::DictionaryValue* state)
{
InspectorBaseAgent::setState(state);
m_v8DebuggerAgent->setInspectorState(m_state);

Powered by Google App Engine
This is Rietveld 408576698