diff options
Diffstat (limited to 'chrome/test/ui/ppapi_uitest.cc')
-rw-r--r-- | chrome/test/ui/ppapi_uitest.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/chrome/test/ui/ppapi_uitest.cc b/chrome/test/ui/ppapi_uitest.cc index 5cb4aa8..b012262 100644 --- a/chrome/test/ui/ppapi_uitest.cc +++ b/chrome/test/ui/ppapi_uitest.cc @@ -36,15 +36,10 @@ class PPAPITest : public UITest { FilePath plugin_lib = plugin_dir.Append(library_name); EXPECT_TRUE(file_util::PathExists(plugin_lib)); - -#if defined(OS_WIN) - std::wstring pepper_plugin = plugin_lib.value(); -#else - std::wstring pepper_plugin = UTF8ToWide(plugin_lib.value()); -#endif - pepper_plugin.append(L";application/x-ppapi-tests"); - launch_arguments_.AppendSwitchWithValue(switches::kRegisterPepperPlugins, - pepper_plugin); + FilePath::StringType pepper_plugin = plugin_lib.value(); + pepper_plugin.append(FILE_PATH_LITERAL(";application/x-ppapi-tests")); + launch_arguments_.AppendSwitchNative(switches::kRegisterPepperPlugins, + pepper_plugin); // The test sends us the result via a cookie. launch_arguments_.AppendSwitch(switches::kEnableFileCookies); |