Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1192)

Unified Diff: chrome/browser/protector/histograms.cc

Issue 9965143: Revert 130431 - Move the URL string from TemplateURLRef onto the owning TemplateURL. This will mak… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698