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

Unified Diff: chrome/plugin/webplugin_delegate_stub.cc

Issue 3057033: Remove GetSwitchValue() from chrome/* where easy. (Closed)
Patch Set: finally Created 10 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
Index: chrome/plugin/webplugin_delegate_stub.cc
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc
index 9bc856129871734479bf5e1a6be86486f626bc95..00c42fe3e12208159099692d48627dd393c28c99 100644
--- a/chrome/plugin/webplugin_delegate_stub.cc
+++ b/chrome/plugin/webplugin_delegate_stub.cc
@@ -165,9 +165,9 @@ 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)
+;
tony 2010/08/06 00:09:38 Nit: semicolon on wrong line?
gfx::PluginWindowHandle parent = gfx::kNullPluginWindow;
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698