diff options
Diffstat (limited to 'chrome/browser/chrome_browser_main.cc')
-rw-r--r-- | chrome/browser/chrome_browser_main.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc index d9d4a40..135b1c8 100644 --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc @@ -1615,8 +1615,12 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { if (template_url_service) { const TemplateURL* url_template = template_url_service->GetDefaultSearchProvider(); - if (url_template) - google_search_default = url_template->url_ref().HasGoogleBaseURLs(); + if (url_template) { + const TemplateURLRef* urlref = url_template->url(); + if (urlref) { + google_search_default = urlref->HasGoogleBaseURLs(); + } + } } bool google_search_homepage = false; |