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

Unified Diff: third_party/WebKit/Source/core/layout/ImageQualityControllerTest.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/core/layout/ImageQualityControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
index 7ee78d3969e1940fc1afd99303e4af4bd04c9e6e..4324de7fc7593a7f949ef9ba0ee61491778b5f96 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
+++ b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
@@ -9,6 +9,7 @@
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/paint/PaintController.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include <memory>
namespace blink {
@@ -170,7 +171,7 @@ TEST_F(ImageQualityControllerTest, LowQualityFilterForResizingImage)
LayoutImage* img = toLayoutImage(document().body()->firstChild()->layoutObject());
RefPtr<TestImageLowQuality> testImage = adoptRef(new TestImageLowQuality);
- OwnPtr<PaintController> paintController = PaintController::create();
+ std::unique_ptr<PaintController> paintController = PaintController::create();
GraphicsContext context(*paintController);
// Paint once. This will kick off a timer to see if we resize it during that timer's execution.
@@ -196,7 +197,7 @@ TEST_F(ImageQualityControllerTest, MediumQualityFilterForNotAnimatedWhileAnother
LayoutImage* nonAnimatingImage = toLayoutImage(document().getElementById("myNonAnimatingImage")->layoutObject());
RefPtr<TestImageLowQuality> testImage = adoptRef(new TestImageLowQuality);
- OwnPtr<PaintController> paintController = PaintController::create();
+ std::unique_ptr<PaintController> paintController = PaintController::create();
GraphicsContext context(*paintController);
// Paint once. This will kick off a timer to see if we resize it during that timer's execution.

Powered by Google App Engine
This is Rietveld 408576698