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

Unified Diff: chrome/browser/autocomplete/autocomplete_controller.cc

Issue 12218104: Fix memory leak in AutocompleteProviderTest::GetDestinationURL unit test. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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/autocomplete/autocomplete_controller.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_controller.cc (revision 181776)
+++ chrome/browser/autocomplete/autocomplete_controller.cc (working copy)
@@ -465,7 +465,8 @@
search_terms_args.assisted_query_stats += base::StringPrintf(
".%" PRId64 "j%d",
query_formulation_time.InMilliseconds(),
- search_provider_->field_trial_triggered_in_session());
+ search_provider_ ?
Peter Kasting 2013/02/12 01:34:49 Simpler: search_provider_ && search_provider_->
H Fung 2013/02/12 02:19:45 Done.
+ search_provider_->field_trial_triggered_in_session() : false);
destination_url = GURL(template_url->url_ref().
ReplaceSearchTerms(search_terms_args));
}

Powered by Google App Engine
This is Rietveld 408576698