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

Unified Diff: chrome/browser/web_applications/web_app.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/web_applications/web_app.cc
diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc
index 135b6f4824ba30d0db978ceb0aa0788580e453dd..9b6ac2d1eeb81fc54b92a82977ca98b34997f6ac 100644
--- a/chrome/browser/web_applications/web_app.cc
+++ b/chrome/browser/web_applications/web_app.cc
@@ -27,6 +27,7 @@
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
#include "grit/theme_resources.h"
+#include "net/base/url_constants.h"
#include "skia/ext/image_operations.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/resource/resource_bundle.h"
@@ -436,12 +437,9 @@ void UpdateAllShortcuts(const base::string16& old_app_title,
bool IsValidUrl(const GURL& url) {
static const char* const kValidUrlSchemes[] = {
- content::kFileScheme,
- content::kFileSystemScheme,
- content::kFtpScheme,
- content::kHttpScheme,
- content::kHttpsScheme,
- extensions::kExtensionScheme,
+ content::kFileScheme, content::kFileSystemScheme,
+ content::kFtpScheme, net::kHttpScheme,
+ net::kHttpsScheme, extensions::kExtensionScheme,
};
for (size_t i = 0; i < arraysize(kValidUrlSchemes); ++i) {

Powered by Google App Engine
This is Rietveld 408576698