Index: url/origin.h |
diff --git a/url/origin.h b/url/origin.h |
index 15fe0eaa9b4a92aade81f12f204e7bb1051129e9..01703efa38648443a38a55e835d3d79fbc6f13da 100644 |
--- a/url/origin.h |
+++ b/url/origin.h |
@@ -89,11 +89,8 @@ class URL_EXPORT Origin { |
~Origin(); |
// For unique origins, these return ("", "", 0). |
- // |
- // TODO(mkwst): These should be 'const std::string&', along with their |
- // 'url::SchemeHostPort' analogs. |
- std::string scheme() const { return tuple_.scheme(); } |
- std::string host() const { return tuple_.host(); } |
+ const std::string& scheme() const { return tuple_.scheme(); } |
+ const std::string& host() const { return tuple_.host(); } |
uint16 port() const { return tuple_.port(); } |
bool unique() const { return unique_; } |