diff --git a/src/3rdparty b/src/3rdparty index 2c3ccc7994980d954ec0188ea3fa3d27424ef32e..1c64c9878f36c83b18c2e81aafe6eedc2a67488b 160000 --- a/src/3rdparty +++ b/src/3rdparty @@ -1 +1 @@ -Subproject commit 2c3ccc7994980d954ec0188ea3fa3d27424ef32e +Subproject commit 1c64c9878f36c83b18c2e81aafe6eedc2a67488b diff --git a/src/core/resource_bundle_qt.cpp b/src/core/resource_bundle_qt.cpp index 2487cdbd19aa841bbfc3e71d1e4e3b36542f3678..d69ae05e13837c5995ab332d7d01c205992c0a22 100644 --- a/src/core/resource_bundle_qt.cpp +++ b/src/core/resource_bundle_qt.cpp @@ -47,15 +47,6 @@ void ResourceBundle::LoadCommonResources() AddDataPackFromPath(WebEngineLibraryInfo::getPath(QT_RESOURCES_PAK), SCALE_FACTOR_100P); } -// As GetLocaleFilePath is excluded for Mac in resource_bundle.cc, -// we have to add a replacement for it using the inverted logic. -#if defined(OS_MACOSX) -base::FilePath ResourceBundle::GetLocaleFilePath(const std::string& /*app_locale*/, bool /*test_file_exists*/) -{ - return base::FilePath(); -} -#endif - gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) { LOG(WARNING) << "Unable to load image with id " << resource_id; diff --git a/tools/buildscripts/repack_locales.py b/tools/buildscripts/repack_locales.py index 05e2895edf1735fbdff89bb4c3c0495a5634f6d5..389e9b1fdef38c5eba5df601353b46d13b28aad1 100755 --- a/tools/buildscripts/repack_locales.py +++ b/tools/buildscripts/repack_locales.py @@ -77,15 +77,7 @@ class Usage(Exception): def calc_output(locale): """Determine the file that will be generated for the given locale.""" #e.g. '<(INTERMEDIATE_DIR)/repack/qtwebengine_locales/da.pak', - if OS == 'mac' or OS == 'ios': - # For Cocoa to find the locale at runtime, it needs to use '_' instead - # of '-' (http://crbug.com/20441). Also, 'en-US' should be represented - # simply as 'en' (http://crbug.com/19165, http://crbug.com/25578). - if locale == 'en-US': - locale = 'en' - return '%s/repack/qtwebengine_locales/%s.lproj/locale.pak' % (INT_DIR, locale.replace('-', '_')) - else: - return os.path.join(INT_DIR, 'repack/qtwebengine_locales', locale + '.pak') + return os.path.join(INT_DIR, 'repack/qtwebengine_locales', locale + '.pak') def calc_inputs(locale):