Skip to content

Commit

Permalink
Pass enable-system-flash argument to CEF
Browse files Browse the repository at this point in the history
This way it will use a system-wide installed version of flash (PPAPI)
  • Loading branch information
OsirisNL committed Mar 20, 2016
1 parent 5260066 commit a933d67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/browser-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ void BrowserApp::OnRegisterCustomSchemes(
registrar->AddCustomScheme("http", true, true, false);
}

void BrowserApp::OnBeforeCommandLineProcessing(
const CefString& process_type,
CefRefPtr<CefCommandLine> command_line)
{
command_line->AppendSwitch("enable-system-flash");
}
4 changes: 4 additions & 0 deletions shared/browser-app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class BrowserApp : public CefApp
public:
virtual void OnRegisterCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar) OVERRIDE;
virtual void OnBeforeCommandLineProcessing(
const CefString& process_type,
CefRefPtr<CefCommandLine> command_line) OVERRIDE;

private:
IMPLEMENT_REFCOUNTING(BrowserApp);

Expand Down

0 comments on commit a933d67

Please sign in to comment.