Index: Source/core/inspector/InspectorDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp |
index 147f151e50ff55902fc38b897c19f91156d863b1..2dbd4fa3a05bf6fdaccfe11ee10a082b0dd3939e 100644 |
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp |
@@ -35,6 +35,7 @@ |
#include "core/inspector/v8/V8Debugger.h" |
#include "platform/ScriptForbiddenScope.h" |
#include "wtf/MainThread.h" |
+#include "wtf/Optional.h" |
namespace blink { |
@@ -261,9 +262,9 @@ bool InspectorDebuggerAgent::isPaused() |
PassRefPtrWillBeRawPtr<ScriptAsyncCallStack> InspectorDebuggerAgent::currentAsyncStackTraceForConsole() |
{ |
- OwnPtr<ScriptForbiddenScope::AllowUserAgentScript> allowScripting; |
+ Optional<ScriptForbiddenScope::AllowUserAgentScript> allowScripting; |
if (isMainThread()) |
- allowScripting = adoptPtr(new ScriptForbiddenScope::AllowUserAgentScript()); |
+ allowScripting.emplace(); |
return m_v8DebuggerAgent->currentAsyncStackTraceForConsole(); |
} |