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

Unified Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/testing/TestingPlatformSupport.h
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
index 9cc309c85810acdb5c70fd9d45789df30c9e178b..bc5b15b42161526deab638629d44185f93e9e156 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
@@ -37,6 +37,7 @@
#include "public/platform/WebScheduler.h"
#include "public/platform/WebThread.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -74,8 +75,8 @@ public:
void onNavigationStarted() override { }
private:
- WTF::Deque<OwnPtr<WebTaskRunner::Task>> m_tasks;
- OwnPtr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner;
+ WTF::Deque<std::unique_ptr<WebTaskRunner::Task>> m_tasks;
+ std::unique_ptr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner;
};
class TestingPlatformSupport : public Platform {
@@ -112,7 +113,7 @@ public:
TestingPlatformMockScheduler* mockWebScheduler();
protected:
- OwnPtr<TestingPlatformMockWebThread> m_mockWebThread;
+ std::unique_ptr<TestingPlatformMockWebThread> m_mockWebThread;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698