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

Unified Diff: components/search_engines/template_url_service.cc

Issue 2810233005: Fixed minor bug with Search.DefaultSearchChangeOrigin histogram (Closed)
Patch Set: Created 3 years, 8 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: components/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index ca6401082f4f5c12ba4f65d6e200f92f2f448f07..ed0970fd7c063650f860242df7501a45846991ee 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -1915,7 +1915,7 @@ bool TemplateURLService::ApplyDefaultSearchChangeNoMetrics(
// mainly so we can hold ownership until we get to the point where the list
// of keywords from Web Data is the owner of everything including the
// default.
- bool changed = TemplateURL::MatchesData(
+ bool changed = !TemplateURL::MatchesData(
initial_default_search_provider_.get(), data, search_terms_data());
TemplateURL::Type initial_engine_type =
(source == DefaultSearchManager::FROM_EXTENSION)

Powered by Google App Engine
This is Rietveld 408576698