From a933d67c771a3c46b30c9439ad5a5857f0eae4e8 Mon Sep 17 00:00:00 2001 From: Michel Date: Sun, 20 Mar 2016 20:55:39 +0100 Subject: [PATCH] Pass enable-system-flash argument to CEF This way it will use a system-wide installed version of flash (PPAPI) --- shared/browser-app.cpp | 6 ++++++ shared/browser-app.hpp | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/shared/browser-app.cpp b/shared/browser-app.cpp index e3e17c92b..7e2622d37 100644 --- a/shared/browser-app.cpp +++ b/shared/browser-app.cpp @@ -33,3 +33,9 @@ void BrowserApp::OnRegisterCustomSchemes( registrar->AddCustomScheme("http", true, true, false); } +void BrowserApp::OnBeforeCommandLineProcessing( + const CefString& process_type, + CefRefPtr command_line) +{ + command_line->AppendSwitch("enable-system-flash"); +} \ No newline at end of file diff --git a/shared/browser-app.hpp b/shared/browser-app.hpp index 55b495867..056347f58 100644 --- a/shared/browser-app.hpp +++ b/shared/browser-app.hpp @@ -28,6 +28,10 @@ class BrowserApp : public CefApp public: virtual void OnRegisterCustomSchemes( CefRefPtr registrar) OVERRIDE; + virtual void OnBeforeCommandLineProcessing( + const CefString& process_type, + CefRefPtr command_line) OVERRIDE; + private: IMPLEMENT_REFCOUNTING(BrowserApp);