From b838289a9bc1215d5aed040124165137baaa803f Mon Sep 17 00:00:00 2001 From: "uzair.jaleel" Date: Thu, 30 Jul 2015 17:53:33 +0530 Subject: [PATCH] Removal of appending mobile specific flags to TV 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 --- tizen_src/ewk/ubrowser/main.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tizen_src/ewk/ubrowser/main.cc b/tizen_src/ewk/ubrowser/main.cc index 25edb52..ad8db4d 100644 --- a/tizen_src/ewk/ubrowser/main.cc +++ b/tizen_src/ewk/ubrowser/main.cc @@ -15,14 +15,21 @@ #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) -- 2.7.4