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

Unified Diff: third_party/WebKit/Source/platform/text/PlatformLocale.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/text/PlatformLocale.cpp
diff --git a/third_party/WebKit/Source/platform/text/PlatformLocale.cpp b/third_party/WebKit/Source/platform/text/PlatformLocale.cpp
index 3641a7c7935578b7e6912e56efe8905f2bb57e4c..d4a0f568e457d2b0e65f96c3b1a838a512e74350 100644
--- a/third_party/WebKit/Source/platform/text/PlatformLocale.cpp
+++ b/third_party/WebKit/Source/platform/text/PlatformLocale.cpp
@@ -33,6 +33,7 @@
#include "platform/text/DateTimeFormat.h"
#include "public/platform/Platform.h"
#include "wtf/text/StringBuilder.h"
+#include <memory>
namespace blink {
@@ -176,7 +177,7 @@ String DateTimeStringBuilder::toString()
Locale& Locale::defaultLocale()
{
- static Locale* locale = Locale::create(defaultLanguage()).leakPtr();
+ static Locale* locale = Locale::create(defaultLanguage()).release();
ASSERT(isMainThread());
return *locale;
}

Powered by Google App Engine
This is Rietveld 408576698