[Service] Remove initializeExtensionOnMain 58/263458/5
authorDongHyun Song <dh81.song@samsung.com>
Fri, 3 Sep 2021 01:57:33 +0000 (10:57 +0900)
committerSangYong Park <sy302.park@samsung.com>
Tue, 28 Sep 2021 04:55:09 +0000 (04:55 +0000)
Instead of calling tizen.systeminfo.getPropertyValue(), we can
generate TaskQueue instance explicitly with below patch.

https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/263460/

Change-Id: Ib88acbe03058a2b8149c060b800157095cec2d80
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/service/service_manager.ts

index 8e0c5bb..9f8d3e5 100644 (file)
@@ -1,6 +1,5 @@
 import { Worker, isMainThread } from 'worker_threads';
 import { wrt } from '../browser/wrt';
-import * as XWalkExtension from '../common/wrt_xwalk_extension';
 
 interface WorkerMap {
   [id: string]: any;
@@ -46,19 +45,8 @@ function terminateWorker(id: string, delay: number) {
   workers[id].postMessage({ type: 'stop', delay });
 }
 
-let initializeExtensionOnMain = () => {
-  initializeExtensionOnMain = () => {};
-  XWalkExtension.initialize();
-  // This is workaround solution to make webapis's singleton worker, which has
-  // same smack label with pid's.
-  // It must be handled ahead of dropThreadPrivilege()
-  // Otherwise, smack violation might hanppen from 'libdbuspolicy'.
-  global.tizen.systeminfo.getPropertyValue("CPU", () => { }, () => { });
-}
-
 export function startService(id: string, filename: string) {
   console.debug(`startService - ${id}`);
-  initializeExtensionOnMain();
   if (global['serviceType'] === 'STANDALONE') {
     let ids = id.split(':');
     let serviceId = ids[0];