Index: chrome/browser/protector/histograms.cc |
=================================================================== |
--- chrome/browser/protector/histograms.cc (revision 130565) |
+++ chrome/browser/protector/histograms.cc (working copy) |
@@ -45,8 +45,8 @@ |
const int kProtectorMaxSearchProviderID = SEARCH_ENGINE_MAX; |
int GetSearchProviderHistogramID(const TemplateURL* t_url) { |
- return t_url ? |
- TemplateURLPrepopulateData::GetEngineType(t_url->url()) : |
+ return (t_url && t_url->url()) ? |
+ TemplateURLPrepopulateData::GetEngineType(t_url->url()->url()) : |
SEARCH_ENGINE_NONE; |
} |