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

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

Issue 9811022: Misc. small cleanups to minimize TemplateURL refactoring diffs: (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/autocomplete/autocomplete_edit.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit.cc (revision 128075)
+++ chrome/browser/autocomplete/autocomplete_edit.cc (working copy)
@@ -557,7 +557,7 @@
GetInfoForCurrentText(&current_match, NULL);
const AutocompleteMatch& match =
- index == AutocompletePopupModel::kNoMatch ?
+ (index == AutocompletePopupModel::kNoMatch) ?
current_match : result().match_at(index);
// Strip the keyword + leading space off the input.
@@ -570,10 +570,8 @@
}
content::RecordAction(UserMetricsAction("AcceptedKeyword"));
- TemplateURLService* template_url_service =
- TemplateURLServiceFactory::GetForProfile(profile_);
- if (template_url_service)
- template_url_service->IncrementUsageCount(template_url);
+ TemplateURLServiceFactory::GetForProfile(profile_)->IncrementUsageCount(
+ template_url);
} else {
DCHECK_EQ(content::PAGE_TRANSITION_GENERATED, match.transition);
// NOTE: We purposefully don't increment the usage count of the default

Powered by Google App Engine
This is Rietveld 408576698