In PermissionControllerDelegate::GetPermissionResultForCurrentDocument,
PermissionStatus::DENIED is return as default, so can't use camera for webapp.
Override GetPermissionResultForCurrentDocument in WRT, return PermissionStatus::GRANTED.
Reference:
https://review.tizen.org/gerrit/305527
https://review.tizen.org/gerrit/307952
Change-Id: Ia5c2b1149794c45cc968f22d9903387b60bca8fe
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
#include "components/spellcheck/common/spellcheck_common.h"
#endif
+#if BUILDFLAG(IS_TIZEN)
+#include "wrt/src/browser/wrt_permission_manager.h"
+#endif
+
using content::BrowserThread;
namespace electron {
content::PermissionControllerDelegate*
ElectronBrowserContext::GetPermissionControllerDelegate() {
if (!permission_manager_)
+#if BUILDFLAG(IS_TIZEN)
+ permission_manager_ = std::make_unique<wrt::WRTPermissionManager>();
+#else
permission_manager_ = std::make_unique<ElectronPermissionManager>();
+#endif
return permission_manager_.get();
}