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

Unified Diff: content/renderer/webplugin_delegate_proxy.cc

Issue 10990078: Cleanup: Use plugin constants in more places. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 3 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/plugin_data_remover_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webplugin_delegate_proxy.cc
===================================================================
--- content/renderer/webplugin_delegate_proxy.cc (revision 159101)
+++ content/renderer/webplugin_delegate_proxy.cc (working copy)
@@ -76,7 +76,7 @@
class ScopedLogLevel {
public:
- ScopedLogLevel(int level);
+ explicit ScopedLogLevel(int level);
~ScopedLogLevel();
private:
@@ -382,8 +382,7 @@
params.arg_values = arg_values;
params.host_render_view_routing_id = render_view_->routing_id();
- bool flash =
- LowerCaseEqualsASCII(mime_type_, "application/x-shockwave-flash");
+ bool flash = LowerCaseEqualsASCII(mime_type_, kFlashPluginSwfMimeType);
bool silverlight =
StartsWithASCII(mime_type_, "application/x-silverlight", false);
for (size_t i = 0; i < arg_names.size(); ++i) {
« no previous file with comments | « content/browser/plugin_data_remover_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698