Removal of appending mobile specific flags to TV
authoruzair.jaleel <uzair.jaleel@samsung.com>
Thu, 30 Jul 2015 12:23:33 +0000 (17:53 +0530)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
command line flags specific to mobile like "use-mobile-user-agent" and
"use-mobile-viewport-style" are appended by default when we run ubrowser
on mobile and TV and also this results in duplication as these flags are
already present in command_line_efl.cc which is common to all apps like
mini_browser, efl_webview_app and ubrowser.

M42 patch: http://165.213.202.130/gerrit/#/c/84358/

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14816

Reviewed by: a1.gomes, sns.park

Change-Id: I916e4f270c182087e18d6bb022a7727d0e8e9590
Signed-off-by: uzair.jaleel <uzair.jaleel@samsung.com>
tizen_src/ewk/ubrowser/main.cc

index 25edb52..ad8db4d 100644 (file)
 #include "browser.h"
 #include "logger.h"
 
-// Default command line flags added by default when
+// Command line flags added by default when
 // ubrowser is started with --mobile|-m flag.
 const char* kMobileFlags[] = {
+#if !defined(OS_TIZEN)
+    // These flags are specific to mobile and are applied by
+    // default from command_line_efl.cc for mobile builds.
+    // Hence, only apply them here if it is a desktop build
+    // to simulate mobile environment.
     "use-mobile-user-agent",
     "use-mobile-viewport-style",
+#endif
     "enable-overlay-scrollbar",
 };
 
+
 extern int logger_show_trace;
 extern int logger_use_color;
 #if defined(OS_TIZEN)