[M108 Migration] Set default behavior of common profile as mobile profile 03/289103/2
authorSurya Kumar <surya.kumar7@samsung.com>
Wed, 1 Mar 2023 11:53:55 +0000 (17:23 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 1 Mar 2023 13:56:50 +0000 (13:56 +0000)
WRT disables onscreen mode for |MobileProfile|. This patch equates
|MobileProfile| with |CommonProfile| forcing WRT to run in offscreen
mode in RPi4, just like M94 AURA and fixes web app errors
encountered from wayland module.

Reference: https://review.tizen.org/gerrit/280440

Change-Id: I4e75c16fac97a9ad2a90a4f9bf9bf0a58e5fe4a8
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
tizen_src/chromium_impl/tizen/system_info.cc

index 9e7585b..07392b2 100644 (file)
@@ -56,6 +56,8 @@ int IsDesktopProfile(void) {
 }
 
 int IsMobileProfile(void) {
+  if (IsCommonProfile())
+    return 1;
   return GET_PROFILE() == PROFILE_MOBILE ? 1 : 0;
 }