summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 21:06:58 +0000
committermdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 21:06:58 +0000
commita099f3aeb1fa6c33d0b3f679fbd4e6bc616d85dc (patch)
tree17a93f3dcfa4024fdf364a07fb666ee51cae4fe5
parent9d8fe828142f8d57b1966f711c194b4c2ef36614 (diff)
downloadchromium_src-a099f3aeb1fa6c33d0b3f679fbd4e6bc616d85dc.zip
chromium_src-a099f3aeb1fa6c33d0b3f679fbd4e6bc616d85dc.tar.gz
chromium_src-a099f3aeb1fa6c33d0b3f679fbd4e6bc616d85dc.tar.bz2
Linux: fix an incorrect cast and missing dereference that prevented GNOME 3 proxy settings from being queried.
This should be merged into both beta and stable. BUG=91744 Review URL: http://codereview.chromium.org/7621026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97020 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/proxy/proxy_config_service_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/proxy/proxy_config_service_linux.cc b/net/proxy/proxy_config_service_linux.cc
index c1c2da7..2e19589 100644
--- a/net/proxy/proxy_config_service_linux.cc
+++ b/net/proxy/proxy_config_service_linux.cc
@@ -557,7 +557,7 @@ GSettings* (*g_settings_new)(const gchar* schema);
bool SchemaExists(const char* schema_name) {
const gchar* const* schemas = g_settings_list_schemas();
while (*schemas) {
- if (strcmp(schema_name, reinterpret_cast<const char*>(schemas)) == 0)
+ if (strcmp(schema_name, static_cast<const char*>(*schemas)) == 0)
return true;
schemas++;
}