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

Unified Diff: third_party/WebKit/Source/core/loader/NavigationScheduler.h

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/loader/NavigationScheduler.h
diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.h b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
index bdb9a25d6a1fc6981c5485f477cfb76d6558a61a..cc8f867ad94fd39fdb94fce9121e9db99c814a7e 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.h
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
@@ -37,10 +37,9 @@
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -86,7 +85,7 @@ private:
static bool mustReplaceCurrentItem(LocalFrame* targetFrame);
Member<LocalFrame> m_frame;
- OwnPtr<CancellableTaskFactory> m_navigateTaskFactory;
+ std::unique_ptr<CancellableTaskFactory> m_navigateTaskFactory;
Member<ScheduledNavigation> m_redirect;
WebScheduler::NavigatingFrameType m_frameType; // Exists because we can't deref m_frame in destructor.
};

Powered by Google App Engine
This is Rietveld 408576698