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

Unified Diff: chrome/browser/plugin_service.cc

Issue 373013: Use GetSwitchValueASCII. (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/plugin_process_host.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_service.cc
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc
index f9153c6bc1d0f711397fbd20c854739fc6068e31..5f66be93479fa64aa746a461e171d86189d6efb7 100644
--- a/chrome/browser/plugin_service.cc
+++ b/chrome/browser/plugin_service.cc
@@ -54,10 +54,9 @@ PluginService::PluginService()
ChromePluginLib::RegisterPluginsWithNPAPI();
// Load the one specified on the command line as well.
const CommandLine* command_line = CommandLine::ForCurrentProcess();
- std::wstring path = command_line->GetSwitchValue(switches::kLoadPlugin);
+ FilePath path = command_line->GetSwitchValuePath(switches::kLoadPlugin);
if (!path.empty()) {
- NPAPI::PluginList::Singleton()->AddExtraPluginPath(
- FilePath::FromWStringHack(path));
+ NPAPI::PluginList::Singleton()->AddExtraPluginPath(path);
}
#ifndef DISABLE_NACL
if (command_line->HasSwitch(switches::kInternalNaCl))
« no previous file with comments | « chrome/browser/plugin_process_host.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698