[Bringup] Fix unity related linking error 45/142845/1
authorYoungsoo Choi <kenshin.choi@samsung.com>
Sat, 5 Aug 2017 07:40:31 +0000 (07:40 +0000)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 7 Aug 2017 08:42:04 +0000 (08:42 +0000)
The chromium only has unity_service for gtk port.
So, the unity_service needs to be implemented for EFL port in chromium-efl.

>> undefined reference to `unity::*'

Change-Id: I3cfc26b94f118274e9854296395de9faf169b0fa
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
atom/browser/browser_linux.cc

index f569040a2189515e98fe6bb1734424df40d15165..6fe9aacb902df294493a9549640463576715164b 100644 (file)
@@ -10,7 +10,9 @@
 #include "atom/browser/window_list.h"
 #include "atom/common/atom_version.h"
 #include "brightray/common/application_info.h"
+#if !defined(USE_EFL)
 #include "chrome/browser/ui/libgtkui/unity_service.h"
+#endif
 
 namespace atom {
 
@@ -49,6 +51,9 @@ bool Browser::IsDefaultProtocolClient(const std::string& protocol,
 }
 
 bool Browser::SetBadgeCount(int count) {
+#if defined(USE_EFL)
+  return false;
+# else
   if (IsUnityRunning()) {
     unity::SetDownloadCount(count);
     badge_count_ = count;
@@ -56,6 +61,7 @@ bool Browser::SetBadgeCount(int count) {
   } else {
     return false;
   }
+#endif
 }
 
 void Browser::SetLoginItemSettings(LoginItemSettings settings) {
@@ -75,7 +81,11 @@ std::string Browser::GetExecutableFileProductName() const {
 }
 
 bool Browser::IsUnityRunning() {
+#if defined(USE_EFL)
+  return false;
+#else
   return unity::IsRunning();
+#endif
 }
 
 }  // namespace atom