From 4493574d71becba0ad1cbb74ce600466cc4f33e0 Mon Sep 17 00:00:00 2001 From: "mnissler@chromium.org" Date: Fri, 10 Sep 2010 08:18:46 +0000 Subject: Make the glob matcher support UTF8 strings. This generalizes the existing pattern matching code to support UTF8 strings. BUG=53158 TEST=string_util_unittests.cc Review URL: http://codereview.chromium.org/3295018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59071 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webkit_glue.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webkit/glue/webkit_glue.cc') diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc index e525be9..53f238f 100644 --- a/webkit/glue/webkit_glue.cc +++ b/webkit/glue/webkit_glue.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -354,7 +354,7 @@ const std::string& GetUserAgent(const GURL& url) { if (!g_user_agent->user_agent_is_overridden) { // Workarounds for sites that use misguided UA sniffing. #if defined(OS_POSIX) && !defined(OS_MACOSX) - if (MatchPatternASCII(url.host(), "*.mail.yahoo.com")) { + if (MatchPattern(url.host(), "*.mail.yahoo.com")) { // mail.yahoo.com is ok with Windows Chrome but not Linux Chrome. // http://bugs.chromium.org/11136 // TODO(evanm): remove this if Yahoo fixes their sniffing. -- cgit v1.1