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

Unified Diff: url/gurl.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/BUILD.gn ('k') | url/gurl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index 1d388cd130c8527e5ba8822a6715f587d038d245..f370934dcb5026399c91c6bc7949c92f0b5ef4da 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -198,7 +198,8 @@ class URL_EXPORT GURL {
// A helper function to return a GURL stripped from the elements that are not
// supposed to be sent as HTTP referrer: username, password and ref fragment.
- // For invalid URLs the original URL will be returned.
+ // For invalid URLs or URLs that no valid referrers, an empty URL will be
+ // returned.
GURL GetAsReferrer() const;
// Returns true if the scheme for the current URL is a known "standard"
« no previous file with comments | « url/BUILD.gn ('k') | url/gurl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698