summaryrefslogtreecommitdiffstats
path: root/chrome/browser/template_url_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/template_url_model.cc')
-rw-r--r--chrome/browser/template_url_model.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/template_url_model.cc b/chrome/browser/template_url_model.cc
index 8a2be29..b10d08d 100644
--- a/chrome/browser/template_url_model.cc
+++ b/chrome/browser/template_url_model.cc
@@ -135,9 +135,11 @@ void TemplateURLModel::Init(const Initializer* initializers,
// Request a server check for the correct Google URL if Google is the default
// search engine.
const TemplateURL* default_provider = GetDefaultSearchProvider();
- const TemplateURLRef* default_provider_ref = default_provider->url();
- if (default_provider_ref && default_provider_ref->HasGoogleBaseURLs())
- GoogleURLTracker::RequestServerCheck();
+ if (default_provider) {
+ const TemplateURLRef* default_provider_ref = default_provider->url();
+ if (default_provider_ref && default_provider_ref->HasGoogleBaseURLs())
+ GoogleURLTracker::RequestServerCheck();
+ }
}
// static