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

Unified Diff: content/plugin/webplugin_proxy.cc

Issue 6990043: Replace "http" etc with the url_constants version. This was a previous TODO for webplugin_proxy.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « content/browser/tab_contents/tab_contents_observer.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/webplugin_proxy.cc
===================================================================
--- content/plugin/webplugin_proxy.cc (revision 86304)
+++ content/plugin/webplugin_proxy.cc (working copy)
@@ -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 @@
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;
}
}
« no previous file with comments | « content/browser/tab_contents/tab_contents_observer.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698