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

Unified Diff: chrome/browser/search_engines/template_url.cc

Issue 10033017: More misc. cleanups to minimize future refactoring diffs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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: chrome/browser/search_engines/template_url.cc
===================================================================
--- chrome/browser/search_engines/template_url.cc (revision 131375)
+++ chrome/browser/search_engines/template_url.cc (working copy)
@@ -585,7 +585,7 @@
TemplateURLData::~TemplateURLData() {
}
-void TemplateURLData::SetKeyword(const string16& keyword) const {
+void TemplateURLData::SetKeyword(const string16& keyword) {
// Case sensitive keyword matching is confusing. As such, we force all
// keywords to be lower case.
keyword_ = base::i18n::ToLower(keyword);
@@ -597,7 +597,7 @@
return keyword_;
}
-void TemplateURLData::SetAutogenerateKeyword(bool autogenerate_keyword) const {
+void TemplateURLData::SetAutogenerateKeyword(bool autogenerate_keyword) {
autogenerate_keyword_ = autogenerate_keyword;
if (autogenerate_keyword_) {
keyword_.clear();
@@ -709,12 +709,12 @@
void TemplateURL::SetPrepopulateId(int id) {
data_.prepopulate_id = id;
const bool prepopulated = id > 0;
+ url_ref_.prepopulated_ = prepopulated;
suggestions_url_ref_.prepopulated_ = prepopulated;
- url_ref_.prepopulated_ = prepopulated;
instant_url_ref_.prepopulated_ = prepopulated;
}
-void TemplateURL::InvalidateCachedValues() const {
+void TemplateURL::InvalidateCachedValues() {
url_ref_.InvalidateCachedValues();
suggestions_url_ref_.InvalidateCachedValues();
instant_url_ref_.InvalidateCachedValues();

Powered by Google App Engine
This is Rietveld 408576698