diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 16:08:56 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 16:08:56 +0000 |
commit | 10671368043e551d7acd7b3f908c6de2e6e72f7f (patch) | |
tree | 205c3558e62cd5786455a26e527e63efbf05d2f4 /webkit | |
parent | 26adfe69e146247e5532d2fc240a16728c1c82bc (diff) | |
download | chromium_src-10671368043e551d7acd7b3f908c6de2e6e72f7f.zip chromium_src-10671368043e551d7acd7b3f908c6de2e6e72f7f.tar.gz chromium_src-10671368043e551d7acd7b3f908c6de2e6e72f7f.tar.bz2 |
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
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/plugins/ppapi/plugin_module.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc index c54ad68..9859157 100644 --- a/webkit/plugins/ppapi/plugin_module.cc +++ b/webkit/plugins/ppapi/plugin_module.cc @@ -79,6 +79,7 @@ #include "ppapi/shared_impl/time_conversion.h" #include "ppapi/thunk/enter.h" #include "ppapi/thunk/thunk.h" +#include "webkit/plugins/plugin_switches.h" #include "webkit/plugins/ppapi/callbacks.h" #include "webkit/plugins/ppapi/common.h" #include "webkit/plugins/ppapi/ppapi_interface_factory.h" @@ -370,7 +371,8 @@ const void* GetInterface(const char* name) { // specified. This allows us to prevent people from (ab)using this interface // in production code. 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 NULL; |