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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasFontCache.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/html/canvas/CanvasFontCache.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
index cc641808684bcb19b9db1164b1c765ef08e30d95..a6da4a2eea626e3f9db883cefe145ba285d3401f 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
@@ -10,6 +10,7 @@
#include "core/style/ComputedStyle.h"
#include "platform/fonts/FontCache.h"
#include "public/platform/Platform.h"
+#include "wtf/PtrUtil.h"
namespace {
@@ -134,7 +135,7 @@ void CanvasFontCache::schedulePruningIfNeeded()
if (m_pruningScheduled)
return;
ASSERT(!m_mainCachePurgePreventer);
- m_mainCachePurgePreventer = adoptPtr(new FontCachePurgePreventer);
+ m_mainCachePurgePreventer = wrapUnique(new FontCachePurgePreventer);
Platform::current()->currentThread()->addTaskObserver(this);
m_pruningScheduled = true;
}

Powered by Google App Engine
This is Rietveld 408576698