Skip to content

Commit a933d67

Browse files
committed
Pass enable-system-flash argument to CEF
This way it will use a system-wide installed version of flash (PPAPI)
1 parent 5260066 commit a933d67

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

shared/browser-app.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ void BrowserApp::OnRegisterCustomSchemes(
3333
registrar->AddCustomScheme("http", true, true, false);
3434
}
3535

36+
void BrowserApp::OnBeforeCommandLineProcessing(
37+
const CefString& process_type,
38+
CefRefPtr<CefCommandLine> command_line)
39+
{
40+
command_line->AppendSwitch("enable-system-flash");
41+
}

shared/browser-app.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class BrowserApp : public CefApp
2828
public:
2929
virtual void OnRegisterCustomSchemes(
3030
CefRefPtr<CefSchemeRegistrar> registrar) OVERRIDE;
31+
virtual void OnBeforeCommandLineProcessing(
32+
const CefString& process_type,
33+
CefRefPtr<CefCommandLine> command_line) OVERRIDE;
34+
3135
private:
3236
IMPLEMENT_REFCOUNTING(BrowserApp);
3337

0 commit comments

Comments
 (0)