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

Unified Diff: third_party/WebKit/Source/platform/text/PlatformLocale.h

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.h
diff --git a/third_party/WebKit/Source/platform/text/PlatformLocale.h b/third_party/WebKit/Source/platform/text/PlatformLocale.h
index ed248b3d478078ee8b5032b22737da1da480796e..d9189bb8f9661fe2401719681b4d8faee261e3e0 100644
--- a/third_party/WebKit/Source/platform/text/PlatformLocale.h
+++ b/third_party/WebKit/Source/platform/text/PlatformLocale.h
@@ -30,8 +30,8 @@
#include "platform/Language.h"
#include "public/platform/WebLocalizedString.h"
#include "wtf/Allocator.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -39,7 +39,7 @@ class PLATFORM_EXPORT Locale {
WTF_MAKE_NONCOPYABLE(Locale);
USING_FAST_MALLOC(Locale);
public:
- static std::unique_ptr<Locale> create(const String& localeIdentifier);
+ static PassOwnPtr<Locale> create(const String& localeIdentifier);
static Locale& defaultLocale();
String queryString(WebLocalizedString::Name);
« no previous file with comments | « third_party/WebKit/Source/platform/text/LocaleWinTest.cpp ('k') | third_party/WebKit/Source/platform/text/PlatformLocale.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698