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

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

Powered by Google App Engine
This is Rietveld 408576698