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

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

Issue 2488573002: Refactor getInstalledRelatedApps code and add manifest logic and tests. (Closed)
Patch Set: Use SecurityOrigin, not WebSecurityOrigin. Created 3 years, 10 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 06b5b603f944ba8230e372409352970d35fbd29f..e3cb67888b8a1c7ab124fc0d31ae4a46db813539 100644
--- a/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp
+++ b/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp
@@ -16,7 +16,6 @@
#include "core/frame/Navigator.h"
#include "modules/installedapp/InstalledAppController.h"
#include "modules/installedapp/RelatedApplication.h"
-#include "public/platform/modules/installedapp/WebInstalledAppClient.h"
#include "public/platform/modules/installedapp/WebRelatedApplication.h"
#include "wtf/PtrUtil.h"
@@ -79,9 +78,8 @@ ScriptPromise NavigatorInstalledApp::getInstalledRelatedApps(
return promise;
}
- appController->getInstalledApps(
- WebSecurityOrigin(
- scriptState->getExecutionContext()->getSecurityOrigin()),
+ appController->getInstalledRelatedApps(
+ scriptState->getExecutionContext()->getSecurityOrigin(),
WTF::wrapUnique(
new CallbackPromiseAdapter<RelatedAppArray, void>(resolver)));
return promise;

Powered by Google App Engine
This is Rietveld 408576698