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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp

Issue 2004313003: DevTools: migrate from OwnPtr to std::unique_ptr for inspector protocol classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined 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/platform/v8_inspector/V8Console.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
index 1ed8701510e614f3b44ef01ae197da9fb63bf7bd..342df6fbe2e0faf912006eadc6a07c88562eb20c 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
@@ -336,7 +336,7 @@ void V8Console::countCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
String16 title = helper.firstArgToString(String16());
String16 identifier;
if (title.isEmpty()) {
- OwnPtr<V8StackTraceImpl> stackTrace = V8StackTraceImpl::capture(nullptr, 1);
+ std::unique_ptr<V8StackTraceImpl> stackTrace = V8StackTraceImpl::capture(nullptr, 1);
if (stackTrace)
identifier = stackTrace->topSourceURL() + ":" + String16::number(stackTrace->topLineNumber());
} else {
@@ -589,11 +589,11 @@ static void inspectImpl(const v8::FunctionCallbackInfo<v8::Value>& info, bool co
if (!injectedScript)
return;
ErrorString errorString;
- OwnPtr<protocol::Runtime::RemoteObject> wrappedObject = injectedScript->wrapObject(&errorString, info[0], "", false /** forceValueType */, false /** generatePreview */);
+ std::unique_ptr<protocol::Runtime::RemoteObject> wrappedObject = injectedScript->wrapObject(&errorString, info[0], "", false /** forceValueType */, false /** generatePreview */);
if (!wrappedObject || !errorString.isEmpty())
return;
- OwnPtr<protocol::DictionaryValue> hints = protocol::DictionaryValue::create();
+ std::unique_ptr<protocol::DictionaryValue> hints = protocol::DictionaryValue::create();
if (copyToClipboard)
hints->setBoolean("copyToClipboard", true);
if (V8InspectorSessionImpl* session = helper.currentSession())

Powered by Google App Engine
This is Rietveld 408576698