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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.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/scroll/ScrollbarTestSuite.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h b/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
index a0551daf066d52202c4f3b69dc25e1e0a12e284a..0bd8755879ae9d39927125e72e8d4a1f59a2f522 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h
@@ -11,6 +11,8 @@
#include "platform/scroll/ScrollbarThemeMock.h"
#include "platform/testing/TestingPlatformSupport.h"
#include "testing/gmock/include/gmock/gmock.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -89,7 +91,7 @@ public:
{
TestingPlatformSupport::Config config;
config.compositorSupport = Platform::current()->compositorSupport();
- m_fakePlatform = adoptPtr(new TestingPlatformSupportWithMockScheduler(config));
+ m_fakePlatform = wrapUnique(new TestingPlatformSupportWithMockScheduler(config));
}
void TearDown() override
@@ -98,7 +100,7 @@ public:
}
private:
- OwnPtr<TestingPlatformSupportWithMockScheduler> m_fakePlatform;
+ std::unique_ptr<TestingPlatformSupportWithMockScheduler> m_fakePlatform;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698