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

Unified Diff: url/mojo/origin_struct_traits.h

Issue 2161423002: Switch on use_new_wrapper_types mode for url/mojo/ and components/web_cache/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « url/mojo/BUILD.gn ('k') | url/url.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/mojo/origin_struct_traits.h
diff --git a/url/mojo/origin_struct_traits.h b/url/mojo/origin_struct_traits.h
index 1f7d63a479b34f1ad413008fbaebe59110b23a5e..c92cd76504bbf12479e7357ab7f84e85af0c3d43 100644
--- a/url/mojo/origin_struct_traits.h
+++ b/url/mojo/origin_struct_traits.h
@@ -13,12 +13,8 @@ namespace mojo {
template <>
struct StructTraits<url::mojom::Origin, url::Origin> {
- static base::StringPiece scheme(const url::Origin& r) {
- return base::StringPiece(r.scheme());
- }
- static base::StringPiece host(const url::Origin& r) {
- return base::StringPiece(r.host());
- }
+ static const std::string& scheme(const url::Origin& r) { return r.scheme(); }
+ static const std::string& host(const url::Origin& r) { return r.host(); }
static uint16_t port(const url::Origin& r) {
return r.port();
}
« no previous file with comments | « url/mojo/BUILD.gn ('k') | url/url.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698