Index: src/inspector/v8-console-message.cc |
diff --git a/src/inspector/v8-console-message.cc b/src/inspector/v8-console-message.cc |
index 63f1d49faf324d4d8df4feaf155611f2a10daefa..34c8e5bda0b7cc576dae4500a90659ae632c2c7f 100644 |
--- a/src/inspector/v8-console-message.cc |
+++ b/src/inspector/v8-console-message.cc |
@@ -361,7 +361,7 @@ std::unique_ptr<V8ConsoleMessage> V8ConsoleMessage::createForConsoleAPI( |
V8InspectorImpl* inspector = inspectedContext->inspector(); |
v8::Local<v8::Context> context = inspectedContext->context(); |
- std::unique_ptr<V8ConsoleMessage> message = wrapUnique( |
+ std::unique_ptr<V8ConsoleMessage> message = std::unique_ptr<V8ConsoleMessage>( |
new V8ConsoleMessage(V8MessageOrigin::kConsole, timestamp, String16())); |
if (stackTrace && !stackTrace->isEmpty()) { |
message->m_url = toString16(stackTrace->topSourceURL()); |
@@ -372,8 +372,8 @@ std::unique_ptr<V8ConsoleMessage> V8ConsoleMessage::createForConsoleAPI( |
message->m_type = type; |
message->m_contextId = contextId; |
for (size_t i = 0; i < arguments.size(); ++i) |
- message->m_arguments.push_back( |
- wrapUnique(new v8::Global<v8::Value>(isolate, arguments.at(i)))); |
+ message->m_arguments.push_back(std::unique_ptr<v8::Global<v8::Value>>( |
+ new v8::Global<v8::Value>(isolate, arguments.at(i)))); |
if (arguments.size()) |
message->m_message = V8ValueStringBuilder::toString(arguments[0], context); |
@@ -404,8 +404,9 @@ std::unique_ptr<V8ConsoleMessage> V8ConsoleMessage::createForException( |
std::unique_ptr<V8StackTraceImpl> stackTrace, int scriptId, |
v8::Isolate* isolate, const String16& message, int contextId, |
v8::Local<v8::Value> exception, unsigned exceptionId) { |
- std::unique_ptr<V8ConsoleMessage> consoleMessage = wrapUnique( |
- new V8ConsoleMessage(V8MessageOrigin::kException, timestamp, message)); |
+ std::unique_ptr<V8ConsoleMessage> consoleMessage = |
+ std::unique_ptr<V8ConsoleMessage>(new V8ConsoleMessage( |
+ V8MessageOrigin::kException, timestamp, message)); |
consoleMessage->setLocation(url, lineNumber, columnNumber, |
std::move(stackTrace), scriptId); |
consoleMessage->m_exceptionId = exceptionId; |
@@ -413,7 +414,8 @@ std::unique_ptr<V8ConsoleMessage> V8ConsoleMessage::createForException( |
if (contextId && !exception.IsEmpty()) { |
consoleMessage->m_contextId = contextId; |
consoleMessage->m_arguments.push_back( |
- wrapUnique(new v8::Global<v8::Value>(isolate, exception))); |
+ std::unique_ptr<v8::Global<v8::Value>>( |
+ new v8::Global<v8::Value>(isolate, exception))); |
} |
return consoleMessage; |
} |
@@ -422,8 +424,9 @@ std::unique_ptr<V8ConsoleMessage> V8ConsoleMessage::createForException( |
std::unique_ptr<V8ConsoleMessage> V8ConsoleMessage::createForRevokedException( |
double timestamp, const String16& messageText, |
unsigned revokedExceptionId) { |
- std::unique_ptr<V8ConsoleMessage> message = wrapUnique(new V8ConsoleMessage( |
- V8MessageOrigin::kRevokedException, timestamp, messageText)); |
+ std::unique_ptr<V8ConsoleMessage> message = |
+ std::unique_ptr<V8ConsoleMessage>(new V8ConsoleMessage( |
+ V8MessageOrigin::kRevokedException, timestamp, messageText)); |
message->m_revokedExceptionId = revokedExceptionId; |
return message; |
} |