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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h

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/core/inspector/InspectorBaseAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h
index 73ab0f804af4db643c1ddf7e22f4fe6a24023bee..84ca702bc242185ac35b91b7c937eb17c3de68b1 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorBaseAgent.h
@@ -76,7 +76,7 @@ public:
m_state = state->getObject(m_name);
if (!m_state) {
- OwnPtr<protocol::DictionaryValue> newState = protocol::DictionaryValue::create();
+ std::unique_ptr<protocol::DictionaryValue> newState = protocol::DictionaryValue::create();
m_state = newState.get();
state->setObject(m_name, std::move(newState));
}

Powered by Google App Engine
This is Rietveld 408576698