Merge pull request #3020 from atom/fix-switch-path
Fix a wrong usage of switch commandline.
This commit is contained in:
commit
fe4d86925b
2 changed files with 14 additions and 2 deletions
|
@ -99,7 +99,7 @@ void AtomContentClient::AddAdditionalSchemes(
|
|||
void AtomContentClient::AddPepperPlugins(
|
||||
std::vector<content::PepperPluginInfo>* plugins) {
|
||||
auto command_line = base::CommandLine::ForCurrentProcess();
|
||||
auto flash_path = command_line->GetSwitchValueNative(
|
||||
auto flash_path = command_line->GetSwitchValuePath(
|
||||
switches::kPpapiFlashPath);
|
||||
if (flash_path.empty())
|
||||
return;
|
||||
|
@ -108,7 +108,7 @@ void AtomContentClient::AddPepperPlugins(
|
|||
switches::kPpapiFlashVersion);
|
||||
|
||||
plugins->push_back(
|
||||
CreatePepperFlashInfo(base::FilePath(flash_path), flash_version));
|
||||
CreatePepperFlashInfo(flash_path, flash_version));
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue