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

Unified Diff: content/renderer/installedapp/related_apps_fetcher.cc

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/installedapp/related_apps_fetcher.cc
diff --git a/content/renderer/installedapp/related_apps_fetcher.cc b/content/renderer/installedapp/related_apps_fetcher.cc
index 2d6db5a5c0f0be3e3dbc7dec2552e33c2fcca057..733665a3ecf11f3980430a3c58f2a7cffc0a11c5 100644
--- a/content/renderer/installedapp/related_apps_fetcher.cc
+++ b/content/renderer/installedapp/related_apps_fetcher.cc
@@ -41,10 +41,7 @@ void RelatedAppsFetcher::OnGetManifestForRelatedApplications(
blink::WebString::fromUTF16(relatedApplication.platform);
webRelatedApplication.id =
blink::WebString::fromUTF16(relatedApplication.id);
- if (!relatedApplication.url.is_empty()) {
- webRelatedApplication.url =
- blink::WebString::fromUTF8(relatedApplication.url.spec());
- }
+ webRelatedApplication.url = blink::WebURL(relatedApplication.url);
related_apps.push_back(std::move(webRelatedApplication));
}
callbacks->onSuccess(std::move(related_apps));
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698