summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 01:46:59 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 01:46:59 +0000
commited578097fa1a348906fdd74ea32bf140c8f75071 (patch)
tree46decb9874a9573f64a3a86893a7dec063fa97fb /chrome/plugin
parentabb4e8e1ecd63ce8d80e7ab514b748c2cbf201b8 (diff)
downloadchromium_src-ed578097fa1a348906fdd74ea32bf140c8f75071.zip
chromium_src-ed578097fa1a348906fdd74ea32bf140c8f75071.tar.gz
chromium_src-ed578097fa1a348906fdd74ea32bf140c8f75071.tar.bz2
Remove GetSwitchValue() from chrome/* where easy.
Review URL: http://codereview.chromium.org/3057033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/plugin_main.cc2
-rw-r--r--chrome/plugin/webplugin_delegate_stub.cc5
2 files changed, 3 insertions, 4 deletions
diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc
index 2f16e63..8313b68 100644
--- a/chrome/plugin/plugin_main.cc
+++ b/chrome/plugin/plugin_main.cc
@@ -94,7 +94,7 @@ int PluginMain(const MainFunctionParams& parameters) {
// The command line might specify a test plugin to load.
if (parsed_command_line.HasSwitch(switches::kTestSandbox)) {
std::wstring test_plugin_name =
- parsed_command_line.GetSwitchValue(switches::kTestSandbox);
+ parsed_command_line.GetSwitchValueNative(switches::kTestSandbox);
sandbox_test_module = LoadLibrary(test_plugin_name.c_str());
DCHECK(sandbox_test_module);
}
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc
index 9bc8561..acf83b1 100644
--- a/chrome/plugin/webplugin_delegate_stub.cc
+++ b/chrome/plugin/webplugin_delegate_stub.cc
@@ -165,9 +165,8 @@ void WebPluginDelegateStub::OnInit(const PluginMsg_Init_Params& params,
}
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- FilePath path = FilePath::FromWStringHack(
- command_line.GetSwitchValue(switches::kPluginPath));
-
+ FilePath path =
+ command_line.GetSwitchValuePath(switches::kPluginPath);
gfx::PluginWindowHandle parent = gfx::kNullPluginWindow;
#if defined(OS_WIN)