chromium/chromium-34.0.1847.137-glib-2.40.patch

30 lines
1.2 KiB
Diff

diff --git a/build/linux/system.gyp b/build/linux/system.gyp
index 7911ae9..fda9234 100644
--- a/build/linux/system.gyp
+++ b/build/linux/system.gyp
@@ -532,7 +532,7 @@
'g_settings_get_boolean',
'g_settings_get_int',
'g_settings_get_strv',
- 'g_settings_list_schemas',
+ 'g_settings_schema_source_list_schemas',
],
'message': 'Generating libgio library loader',
'process_outputs_as_sources': 1,
diff --git a/net/proxy/proxy_config_service_linux.cc b/net/proxy/proxy_config_service_linux.cc
index de41b14..bf8abac 100644
--- a/net/proxy/proxy_config_service_linux.cc
+++ b/net/proxy/proxy_config_service_linux.cc
@@ -547,7 +547,10 @@ class SettingGetterImplGSettings
}
bool SchemaExists(const char* schema_name) {
- const gchar* const* schemas = libgio_loader_.g_settings_list_schemas();
+ gchar **schemas;
+
+ libgio_loader_.g_settings_schema_source_list_schemas
+ (g_settings_schema_source_get_default(), TRUE, &schemas, NULL);
while (*schemas) {
if (strcmp(schema_name, static_cast<const char*>(*schemas)) == 0)
return true;