[M69 Dev][Tizen] Use mobile user agent for mobile/wearable profile 92/193092/1
authorChandan Padhi <c.padhi@samsung.com>
Wed, 14 Nov 2018 10:31:56 +0000 (02:31 -0800)
committerChandan Padhi <c.padhi@samsung.com>
Wed, 14 Nov 2018 10:31:56 +0000 (02:31 -0800)
Without this change, we get a desktop layout on TM1 which is not desirable.

Change-Id: Ia7cb6f58027b6c3fec841c7181faf073b7fb4ada
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
tizen_src/ewk/efl_integration/command_line_efl.cc

index a5022a9..21fca0a 100644 (file)
@@ -76,17 +76,17 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
 #endif // EWK_BRINGUP
 #endif
 
-#if !defined(EWK_BRINGUP)
   if (IsMobileProfile() || IsWearableProfile()) {
+    p_command_line->AppendSwitch(switches::kUseMobileUserAgent);
+#if !defined(EWK_BRINGUP)
     p_command_line->AppendSwitchASCII(switches::kTouchEvents,
                                       switches::kTouchEventsEnabled);
     p_command_line->AppendSwitch(switches::kEnablePinch);
-    p_command_line->AppendSwitch(switches::kUseMobileUserAgent);
     // [M42_2231] FIXME: Need Parallel Canvas patch for S-Chromium/S-Blink/S-Skia
     p_command_line->AppendSwitchASCII(
         switches::kAcceleratedCanvas2dMSAASampleCount, "4");
-  }
 #endif
+  }
 
   p_command_line->AppendSwitch(switches::kDisableFrameRateLimit);