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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 9968016: Move the URL string from TemplateURLRef onto the owning TemplateURL. This will make it easier to m… (Closed) Base URL: svn://chrome-svn/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/chrome_browser_main.cc
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 129864)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -1880,9 +1880,8 @@
// The default engine can be NULL if the administrator has disabled
// default search.
SearchEngineType search_engine_type =
- TemplateURLPrepopulateData::GetEngineType(
- (default_search_engine && default_search_engine->url()) ?
- default_search_engine->url()->url() : std::string());
+ TemplateURLPrepopulateData::GetEngineType(default_search_engine ?
+ default_search_engine->url() : std::string());
// Record the search engine chosen.
UMA_HISTOGRAM_ENUMERATION("Chrome.SearchSelectExempt", search_engine_type,
SEARCH_ENGINE_MAX);

Powered by Google App Engine
This is Rietveld 408576698