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

Unified Diff: src/inspector/ProtocolPlatform.h

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners Created 4 years, 3 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: src/inspector/ProtocolPlatform.h
diff --git a/src/inspector/ProtocolPlatform.h b/src/inspector/ProtocolPlatform.h
index cb6d4f2dbea5e93b72929dc808d7dce65b1a23f8..c7723932b42465f0abb5d2f7f3f4dc5e42c1f05d 100644
--- a/src/inspector/ProtocolPlatform.h
+++ b/src/inspector/ProtocolPlatform.h
@@ -5,11 +5,17 @@
#ifndef V8_INSPECTOR_PROTOCOLPLATFORM_H_
#define V8_INSPECTOR_PROTOCOLPLATFORM_H_
-// TODO(dgozman): this file should be removed from v8_inspector.
+#include <memory>
-//#include "wtf/Assertions.h"
-//#include "wtf/PtrUtil.h"
+#include "src/base/logging.h"
-#include <memory>
+namespace v8_inspector {
+
+template <typename T>
+std::unique_ptr<T> wrapUnique(T* ptr) {
+ return std::unique_ptr<T>(ptr);
+}
+
+} // namespace v8_inspector
#endif // V8_INSPECTOR_PROTOCOLPLATFORM_H_

Powered by Google App Engine
This is Rietveld 408576698