NextBrowser will query UWE for SIDs which are not present in NextBrowser.
Change-Id: Id8db35e79b9ccdb640e79b77d3510c6b8e1e0e0b
Signed-off-by: Tarun Verma <tarun1.verma@samsung.com>
"${root_gen_dir}/ui/strings/ax_strings_",
"${root_gen_dir}/ui/strings/ui_strings_",
]
+ if (tizen_product_tv && is_samsung_next_browser) {
+ source_patterns -= [
+ "${root_gen_dir}/components/strings/components_locale_settings_",
+ "${root_gen_dir}/components/strings/components_strings_",
+ "${root_gen_dir}/third_party/blink/public/strings/blink_strings_",
+ "${root_gen_dir}/device/bluetooth/strings/bluetooth_strings_",
+ "${root_gen_dir}/third_party/libaddressinput/address_input_strings_",
+ "${root_gen_dir}/ui/strings/app_locale_settings_",
+ "${root_gen_dir}/ui/strings/ui_strings_",
+ ]
+ }
if (!defined(deps)) {
deps = []
}
if (enable_extensions) {
source_patterns +=
[ "${root_gen_dir}/extensions/strings/extensions_strings_" ]
+ if (tizen_product_tv && is_samsung_next_browser){
+ source_patterns -=
+ [ "${root_gen_dir}/extensions/strings/extensions_strings_" ]
+ }
deps += [ "//extensions/strings" ]
}
include_dirs = external_ui_base_includes
sources += external_ui_base_sources
}
+ if (tizen_product_tv && is_samsung_next_browser) {
+ defines += [ "SAMSUNG_NEXT_BROWSER" ]
+ }
}
if (is_ios) {
const unsigned char kPngScaleChunkType[4] = { 'c', 's', 'C', 'l' };
const unsigned char kPngDataChunkType[4] = { 'I', 'D', 'A', 'T' };
+#if defined(SAMSUNG_NEXT_BROWSER)
+const char kUWELocalesPath[] = "/usr/share/chromium-efl/upgrade/bin/locales";
+#endif
+
#if !BUILDFLAG(IS_APPLE)
const char kPakFileExtension[] = ".pak";
#endif
}
locale_resources_data_ = std::move(data_pack);
+
+#if defined(SAMSUNG_NEXT_BROWSER)
+ base::FilePath locale_secondary_file_path = base::FilePath(kUWELocalesPath);
+ locale_secondary_file_path =
+ locale_secondary_file_path.AppendASCII(app_locale + kPakFileExtension);
+ auto data_pack_secondary = std::make_unique<DataPack>(k100Percent);
+ if (!data_pack_secondary->LoadFromPath(locale_secondary_file_path)) {
+ LOG(INFO) << "Failed to create secondary locales";
+ }
+ secondary_locale_resources_data_ = std::move(data_pack_secondary);
+#endif
loaded_locale_ = pref_locale;
return app_locale;
}