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

Unified Diff: third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp

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

Powered by Google App Engine
This is Rietveld 408576698