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

Unified Diff: third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.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/modules/credentialmanager/CredentialsContainer.cpp
diff --git a/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp b/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp
index b671c5c95cb8186baf788115e7f360962b8b0fcc..9f93a00e0f9e9bbac25c18e8f2fa92bee2b15961 100644
--- a/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp
+++ b/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp
@@ -27,6 +27,8 @@
#include "public/platform/WebCredentialManagerError.h"
#include "public/platform/WebFederatedCredential.h"
#include "public/platform/WebPasswordCredential.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -80,7 +82,7 @@ public:
Frame* frame = toDocument(m_resolver->getScriptState()->getExecutionContext())->frame();
SECURITY_CHECK(!frame || frame == frame->tree().top());
- OwnPtr<WebCredential> credential = adoptPtr(webCredential.release());
+ std::unique_ptr<WebCredential> credential = wrapUnique(webCredential.release());
if (!credential || !frame) {
m_resolver->resolve();
return;

Powered by Google App Engine
This is Rietveld 408576698