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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp

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

Powered by Google App Engine
This is Rietveld 408576698