Commit 10671368 authored by brettw@google.com's avatar brettw@google.com

Convert the code that uses the pepper testing switch to use the constant rather than hardcode it.

TEST=it compiles
BUG=none
Review URL: http://codereview.chromium.org/7778027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98975 0039d316-1c4b-4281-b951-d872f2087c98
parent 26adfe69
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
#include "ppapi/shared_impl/time_conversion.h" #include "ppapi/shared_impl/time_conversion.h"
#include "ppapi/thunk/enter.h" #include "ppapi/thunk/enter.h"
#include "ppapi/thunk/thunk.h" #include "ppapi/thunk/thunk.h"
#include "webkit/plugins/plugin_switches.h"
#include "webkit/plugins/ppapi/callbacks.h" #include "webkit/plugins/ppapi/callbacks.h"
#include "webkit/plugins/ppapi/common.h" #include "webkit/plugins/ppapi/common.h"
#include "webkit/plugins/ppapi/ppapi_interface_factory.h" #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
...@@ -370,7 +371,8 @@ const void* GetInterface(const char* name) { ...@@ -370,7 +371,8 @@ const void* GetInterface(const char* name) {
// specified. This allows us to prevent people from (ab)using this interface // specified. This allows us to prevent people from (ab)using this interface
// in production code. // in production code.
if (strcmp(name, PPB_TESTING_DEV_INTERFACE) == 0) { if (strcmp(name, PPB_TESTING_DEV_INTERFACE) == 0) {
if (CommandLine::ForCurrentProcess()->HasSwitch("enable-pepper-testing")) if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnablePepperTesting))
return &testing_interface; return &testing_interface;
} }
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment