[WRTjs][VD] Change define(OS_TIZEN_TV_PRODUCT) to BUILDFLAG(IS_TIZEN_TV) 87/320287/2 submit/tizen/20241112.160012
authorChunling Ye <chunling.ye@samsung.com>
Tue, 12 Nov 2024 06:12:32 +0000 (14:12 +0800)
committerBot Blink <blinkbot@samsung.com>
Tue, 12 Nov 2024 11:11:43 +0000 (11:11 +0000)
Change-Id: I32ef2f389950c0a795940b0b953d5d1b22b7899f
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
third_party/electron_node/src/node_realm.cc

index c2c6a447653279f1aeae9b447c59e837f406c7b5..c92d3a42310c999ddcb5bb0daa2a79fd53326ed6 100644 (file)
@@ -1,4 +1,5 @@
 #include "node_realm.h"
+#include "build/build_config.h"
 #include "env-inl.h"
 
 #include "memory_tracker-inl.h"
@@ -6,7 +7,7 @@
 #include "node_process.h"
 #include "util.h"
 
-#if defined(ENABLE_WRT_JS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(ENABLE_WRT_JS) && BUILDFLAG(IS_TIZEN_TV)
 #include "base/logging.h"
 #include "base/time/time.h"
 #endif
@@ -174,12 +175,12 @@ MaybeLocal<Value> Realm::ExecuteBootstrapper(
     return MaybeLocal<Value>();
   }
 
-#if defined(ENABLE_WRT_JS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(ENABLE_WRT_JS) && BUILDFLAG(IS_TIZEN_TV)
   auto start = base::Time::Now();
 #endif
   MaybeLocal<Value> result =
       fn->Call(ctx, Undefined(isolate()), arguments->size(), arguments->data());
-#if defined(ENABLE_WRT_JS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(ENABLE_WRT_JS) && BUILDFLAG(IS_TIZEN_TV)
   auto end = base::Time::Now();
   LOG(INFO) << "v8::Function::Call id : " << id << " takes "
             << (end - start).InMilliseconds() << "(ms)";