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

Unified Diff: third_party/WebKit/Source/core/frame/SettingsDelegate.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/core/frame/SettingsDelegate.h
diff --git a/third_party/WebKit/Source/core/frame/SettingsDelegate.h b/third_party/WebKit/Source/core/frame/SettingsDelegate.h
index 4b37ff97468f398fff4b25a2af2de5844a4a178b..561cfa743fd73880c0d6b74e1abb63005a7c050f 100644
--- a/third_party/WebKit/Source/core/frame/SettingsDelegate.h
+++ b/third_party/WebKit/Source/core/frame/SettingsDelegate.h
@@ -33,7 +33,8 @@
#include "core/CoreExport.h"
#include "wtf/Allocator.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -42,7 +43,7 @@ class Settings;
class CORE_EXPORT SettingsDelegate {
DISALLOW_NEW();
public:
- explicit SettingsDelegate(std::unique_ptr<Settings>);
+ explicit SettingsDelegate(PassOwnPtr<Settings>);
virtual ~SettingsDelegate();
Settings* settings() const { return m_settings.get(); }
@@ -66,7 +67,7 @@ public:
virtual void settingsChanged(ChangeType) = 0;
protected:
- std::unique_ptr<Settings> const m_settings;
+ OwnPtr<Settings> const m_settings;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.cpp ('k') | third_party/WebKit/Source/core/frame/SettingsDelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698