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

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

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

Powered by Google App Engine
This is Rietveld 408576698