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

Unified Diff: content/renderer/pepper/ppb_graphics_3d_impl.cc

Issue 22394006: Get rid of webkit/plugins/plugin_switches.* and move them to content/public/common/content_switches… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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/renderer/pepper/ppb_gpu_blacklist_private_impl.cc ('k') | webkit/plugins/webkit_plugins.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_graphics_3d_impl.cc
===================================================================
--- content/renderer/pepper/ppb_graphics_3d_impl.cc (revision 216485)
+++ content/renderer/pepper/ppb_graphics_3d_impl.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
+#include "content/public/common/content_switches.h"
#include "content/renderer/pepper/host_globals.h"
#include "content/renderer/pepper/pepper_platform_context_3d.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
@@ -23,7 +24,6 @@
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebPluginContainer.h"
#include "webkit/common/webpreferences.h"
-#include "webkit/plugins/plugin_switches.h"
using ppapi::thunk::EnterResourceNoLock;
using ppapi::thunk::PPB_Graphics3D_API;
@@ -72,8 +72,7 @@
PP_Bool PPB_Graphics3D_Impl::IsGpuBlacklisted() {
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line)
- return PP_FromBool(
- command_line->HasSwitch(switches::kDisablePepper3d));
+ return PP_FromBool(command_line->HasSwitch(switches::kDisablePepper3d));
return PP_TRUE;
}
« no previous file with comments | « content/renderer/pepper/ppb_gpu_blacklist_private_impl.cc ('k') | webkit/plugins/webkit_plugins.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698