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

Unified Diff: content/plugin/webplugin_proxy.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: content/plugin/webplugin_proxy.cc
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
index 73d527bae5196a432e9786de99ba20c8cc3ae6a3..57d0e6e3c4bd804a90b7065a6eee39aade462ed0 100644
--- a/content/plugin/webplugin_proxy.cc
+++ b/content/plugin/webplugin_proxy.cc
@@ -20,6 +20,7 @@
#include "content/plugin/plugin_thread.h"
#include "content/public/common/content_client.h"
#include "content/public/common/url_constants.h"
+#include "net/base/url_constants.h"
#include "skia/ext/platform_canvas.h"
#include "skia/ext/platform_device.h"
#include "third_party/WebKit/public/web/WebBindings.h"
@@ -288,8 +289,8 @@ void WebPluginProxy::HandleURLRequest(const char* url,
if (delegate_->GetQuirks() &
WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) {
GURL request_url(url);
- if (!request_url.SchemeIs(kHttpScheme) &&
- !request_url.SchemeIs(kHttpsScheme) &&
+ if (!request_url.SchemeIs(net::kHttpScheme) &&
+ !request_url.SchemeIs(net::kHttpsScheme) &&
!request_url.SchemeIs(kFtpScheme)) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698