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

Unified Diff: chrome/common/net/url_fixer_upper.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address some style nits. Created 6 years, 8 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
Index: chrome/common/net/url_fixer_upper.cc
diff --git a/chrome/common/net/url_fixer_upper.cc b/chrome/common/net/url_fixer_upper.cc
index 37b4d68927ee8d663666f3bd550cac9d94b79013..244754cb862a9306521b6917f1d67acda4caff43 100644
--- a/chrome/common/net/url_fixer_upper.cc
+++ b/chrome/common/net/url_fixer_upper.cc
@@ -18,6 +18,7 @@
#include "net/base/filename_util.h"
#include "net/base/net_util.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
+#include "net/base/url_constants.h"
#include "url/url_file.h"
#include "url/url_parse.h"
#include "url/url_util.h"
@@ -423,8 +424,8 @@ std::string SegmentURLInternal(std::string* text, url_parse::Parsed* parts) {
if (!found_scheme) {
// Couldn't determine the scheme, so just pick one.
parts->scheme.reset();
- scheme = StartsWithASCII(*text, "ftp.", false) ?
- content::kFtpScheme : content::kHttpScheme;
+ scheme = StartsWithASCII(*text, "ftp.", false) ? content::kFtpScheme
+ : net::kHttpScheme;
}
}

Powered by Google App Engine
This is Rietveld 408576698