Index: chrome/browser/search_engines/template_url_prepopulate_data.cc |
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc |
index 7cd25c3ccc81d8bac90780ebeb76c080e735aa43..64101db0edee907515ee02aa6c2614ad57edfd29 100644 |
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc |
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc |
@@ -3284,7 +3284,8 @@ static const PrepopulatedEngine* GetEngineForURL(const std::string& url) { |
// First special-case Google, because the prepopulate URL for it will not |
// convert to a GURL and thus won't have an origin. Instead see if the |
// incoming URL's host is "[*.]google.<TLD>". |
- if (google_util::IsGoogleHostname(as_gurl.host())) |
+ if (google_util::IsGoogleHostname(as_gurl.host(), |
+ google_util::DISALLOW_SUBDOMAIN)) |
return &google; |
// Now check the rest of the prepopulate data. |