plugin: dont check for renderer flags for adding pepper browser host filters
This commit is contained in:
parent
dbb6723dfa
commit
7576de639b
1 changed files with 2 additions and 5 deletions
|
@ -215,11 +215,8 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
|||
|
||||
void AtomBrowserClient::DidCreatePpapiPlugin(
|
||||
content::BrowserPpapiHost* host) {
|
||||
auto command_line = base::CommandLine::ForCurrentProcess();
|
||||
if (command_line->HasSwitch(switches::kEnablePlugins)) {
|
||||
host->GetPpapiHost()->AddHostFactoryFilter(
|
||||
make_scoped_ptr(new chrome::ChromeBrowserPepperHostFactory(host)));
|
||||
}
|
||||
host->GetPpapiHost()->AddHostFactoryFilter(
|
||||
make_scoped_ptr(new chrome::ChromeBrowserPepperHostFactory(host)));
|
||||
}
|
||||
|
||||
content::QuotaPermissionContext*
|
||||
|
|
Loading…
Reference in a new issue