summaryrefslogtreecommitdiffstats
path: root/content/plugin/webplugin_proxy.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 23:57:33 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 23:57:33 +0000
commitabbfaec6e99118ad6994d563606631967bd9e567 (patch)
treec2c81199c609a4c3d9d4a06951c651150f329401 /content/plugin/webplugin_proxy.cc
parent89805c18c0ce6ab0e5c68d58688921b7d3340236 (diff)
downloadchromium_src-abbfaec6e99118ad6994d563606631967bd9e567.zip
chromium_src-abbfaec6e99118ad6994d563606631967bd9e567.tar.gz
chromium_src-abbfaec6e99118ad6994d563606631967bd9e567.tar.bz2
Replace "http" etc with the url_constants version. This was a previous TODO for webplugin_proxy.cc, and I fixed the other places as well.
Review URL: http://codereview.chromium.org/6990043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin/webplugin_proxy.cc')
-rw-r--r--content/plugin/webplugin_proxy.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
index 5006b6c..e046f01 100644
--- a/content/plugin/webplugin_proxy.cc
+++ b/content/plugin/webplugin_proxy.cc
@@ -12,6 +12,7 @@
#include "build/build_config.h"
#include "content/common/content_client.h"
#include "content/common/plugin_messages.h"
+#include "content/common/url_constants.h"
#include "content/plugin/npobject_proxy.h"
#include "content/plugin/npobject_util.h"
#include "content/plugin/plugin_channel.h"
@@ -289,9 +290,9 @@ void WebPluginProxy::HandleURLRequest(const char* url,
webkit::npapi::WebPluginDelegateImpl::
PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) {
GURL request_url(url);
- if (!request_url.SchemeIs("http") &&
- !request_url.SchemeIs("https") &&
- !request_url.SchemeIs("ftp")) {
+ if (!request_url.SchemeIs(chrome::kHttpScheme) &&
+ !request_url.SchemeIs(chrome::kHttpsScheme) &&
+ !request_url.SchemeIs(chrome::kFtpScheme)) {
return;
}
}