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

Unified Diff: third_party/WebKit/Source/core/frame/Settings.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/frame/Settings.cpp
diff --git a/third_party/WebKit/Source/core/frame/Settings.cpp b/third_party/WebKit/Source/core/frame/Settings.cpp
index 7ba6251ff7e4621b65d6bd39c844763840d76671..066ba97776c7d5930287e1dff3a71dbeaaf3c7f4 100644
--- a/third_party/WebKit/Source/core/frame/Settings.cpp
+++ b/third_party/WebKit/Source/core/frame/Settings.cpp
@@ -27,6 +27,8 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/scroll/ScrollbarTheme.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -68,9 +70,9 @@ Settings::Settings()
{
}
-PassOwnPtr<Settings> Settings::create()
+std::unique_ptr<Settings> Settings::create()
{
- return adoptPtr(new Settings);
+ return wrapUnique(new Settings);
}
SETTINGS_SETTER_BODIES
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.h ('k') | third_party/WebKit/Source/core/frame/SettingsDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698