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

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: Add some missing files. 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..f817aca7cd6e5ead877e2dadaf64e9fef6df3cff 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 "url/url_constants.h"
#include "url/url_file.h"
#include "url/url_parse.h"
#include "url/url_util.h"
@@ -424,7 +425,7 @@ std::string SegmentURLInternal(std::string* text, url_parse::Parsed* parts) {
// Couldn't determine the scheme, so just pick one.
parts->scheme.reset();
scheme = StartsWithASCII(*text, "ftp.", false) ?
- content::kFtpScheme : content::kHttpScheme;
+ content::kFtpScheme : url::kHttpScheme;
}
}

Powered by Google App Engine
This is Rietveld 408576698