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

Unified Diff: url/url_util.cc

Issue 2686853004: Move IsAboutBlank from url_utils to GURL (Closed)
Patch Set: Addressed nit Created 3 years, 10 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/url_util.h ('k') | url/url_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/url_util.cc
diff --git a/url/url_util.cc b/url/url_util.cc
index 83cf71f3de14d48581f5972a70cfb1d87ebdc936..a79e114fed36ae6fdd9822ebdb9a0c49a948ee26 100644
--- a/url/url_util.cc
+++ b/url/url_util.cc
@@ -10,7 +10,6 @@
#include "base/debug/leak_annotations.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
-#include "url/gurl.h"
#include "url/url_canon_internal.h"
#include "url/url_constants.h"
#include "url/url_file.h"
@@ -645,21 +644,6 @@ bool IsReferrerScheme(const char* spec, const Component& scheme) {
return DoIsInSchemes(spec, scheme, &unused_scheme_type, *referrer_schemes);
}
-bool IsAboutBlank(const GURL& url) {
- if (!url.SchemeIs(url::kAboutScheme))
- return false;
-
- if (url.has_host() || url.has_username() || url.has_password() ||
- url.has_port()) {
- return false;
- }
-
- if (url.path() != kAboutBlankPath && url.path() != kAboutBlankWithHashPath)
- return false;
-
- return true;
-}
-
bool FindAndCompareScheme(const char* str,
int str_len,
const char* compare,
« no previous file with comments | « url/url_util.h ('k') | url/url_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698