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

Unified Diff: third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/installedapp/NavigatorInstalledApp.cpp
diff --git a/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp b/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp
index 90a7c60fee2a04f993db12736c11bf26a181e3b5..6a8d01d2a8b087d52722215592512ddf292f38ff 100644
--- a/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp
+++ b/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp
@@ -18,6 +18,7 @@
#include "modules/installedapp/RelatedApplication.h"
#include "public/platform/modules/installedapp/WebInstalledAppClient.h"
#include "public/platform/modules/installedapp/WebRelatedApplication.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -80,7 +81,7 @@ ScriptPromise NavigatorInstalledApp::getInstalledRelatedApps(ScriptState* script
controller()->getInstalledApps(
WebSecurityOrigin(scriptState->getExecutionContext()->getSecurityOrigin()),
- adoptWebPtr(new CallbackPromiseAdapter<RelatedAppArray, void>(resolver)));
+ wrapUnique(new CallbackPromiseAdapter<RelatedAppArray, void>(resolver)));
return promise;
}

Powered by Google App Engine
This is Rietveld 408576698