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

Unified Diff: chrome/browser/extensions/api/content_settings/content_settings_helpers.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patches. 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/browser/extensions/api/content_settings/content_settings_helpers.cc
diff --git a/chrome/browser/extensions/api/content_settings/content_settings_helpers.cc b/chrome/browser/extensions/api/content_settings/content_settings_helpers.cc
index 29af76ed5d8552f7c66b77cd99c38fdf0e260272..c0c4941bc63741157c71757df1574efd9d6ab24d 100644
--- a/chrome/browser/extensions/api/content_settings/content_settings_helpers.cc
+++ b/chrome/browser/extensions/api/content_settings/content_settings_helpers.cc
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/common/url_constants.h"
#include "extensions/common/url_pattern.h"
+#include "net/base/url_constants.h"
namespace {
@@ -43,9 +44,9 @@ COMPILE_ASSERT(arraysize(kContentSettingNames) <=
// TODO(bauerb): Move this someplace where it can be reused.
std::string GetDefaultPort(const std::string& scheme) {
- if (scheme == content::kHttpScheme)
+ if (scheme == net::kHttpScheme)
return "80";
- if (scheme == content::kHttpsScheme)
+ if (scheme == net::kHttpsScheme)
return "443";
NOTREACHED();
return std::string();

Powered by Google App Engine
This is Rietveld 408576698