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

Unified Diff: third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp

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/FontTestHelpers.cpp
diff --git a/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp b/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
index 8b94a3626c7ec88a38458277fd4ee6a5992b3017..91be6dd102dcea376de76f8048c92111181e19bf 100644
--- a/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
+++ b/third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
@@ -9,9 +9,9 @@
#include "platform/fonts/FontDescription.h"
#include "platform/fonts/FontSelector.h"
#include "platform/testing/UnitTestHelpers.h"
-#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
+#include <memory>
namespace blink {
namespace testing {
@@ -50,12 +50,12 @@ public:
void fontCacheInvalidated() override { }
private:
- TestFontSelector(PassOwnPtr<FontCustomPlatformData> customPlatformData)
+ TestFontSelector(std::unique_ptr<FontCustomPlatformData> customPlatformData)
: m_customPlatformData(std::move(customPlatformData))
{
}
- OwnPtr<FontCustomPlatformData> m_customPlatformData;
+ std::unique_ptr<FontCustomPlatformData> m_customPlatformData;
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698