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

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

Issue 2748023002: getInstalledRelatedApps: Change internal url fields to URL type. (Closed)
Patch Set: Created 3 years, 9 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 88b692443fd2b63097fad0bd609f4c477cb840a0..65d96ecd64b5c5639dfb24f47d80b2942f2613ff 100644
--- a/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp
+++ b/third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp
@@ -58,9 +58,11 @@ class RelatedAppArray {
ScriptPromiseResolver*,
const WebVector<WebRelatedApplication>& webInfo) {
HeapVector<Member<RelatedApplication>> applications;
- for (const auto& webApplication : webInfo)
+ for (const auto& webApplication : webInfo) {
applications.push_back(RelatedApplication::create(
- webApplication.platform, webApplication.url, webApplication.id));
+ webApplication.platform, webApplication.url.string(),
+ webApplication.id));
+ }
return applications;
}
};

Powered by Google App Engine
This is Rietveld 408576698