fix lint errors and add documentation

This commit is contained in:
deepak1556 2015-05-10 10:25:19 +05:30
parent 853ce0bbd7
commit 15ae6b8d36
3 changed files with 34 additions and 28 deletions

View file

@ -10,16 +10,12 @@
#include "atom/common/chrome_version.h"
#include "atom/common/options_switches.h"
#include "base/command_line.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/pepper_plugin_info.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
namespace atom {
int32 kPepperFlashPermissions = ppapi::PERMISSION_ALL_BITS;
namespace {
content::PepperPluginInfo CreatePepperFlashInfo(const base::FilePath& path,
@ -29,7 +25,7 @@ namespace {
plugin.is_out_of_process = true;
plugin.name = content::kFlashPluginName;
plugin.path = path;
plugin.permissions = kPepperFlashPermissions;
plugin.permissions = ppapi::PERMISSION_ALL_BITS;
plugin.version = version;
content::WebPluginMimeType swf_mime_type(

View file

@ -202,6 +202,8 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
void AtomBrowserClient::DidCreatePpapiPlugin(
content::BrowserPpapiHost* browser_host) {
auto command_line = base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kEnablePlugins))
browser_host->GetPpapiHost()->AddHostFactoryFilter(
scoped_ptr<ppapi::host::HostFactory>(
new chrome::ChromeBrowserPepperHostFactory(browser_host)));

View file

@ -62,6 +62,14 @@ Like `--host-rules` but these `rules` only apply to the host resolver.
Ignore certificate related errors.
## --ppapi-flash-path
Set path to pepper flash plugin for use.
## --ppapi-flash-version
Set the pepper flash version.
## --v=`log_level`
Gives the default maximal active V-logging level; 0 is the default. Normally