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

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

Issue 10021008: Reland r131019: Move most TemplateURL data members to a new struct, TemplateURLData. This allows us… (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/search_host_to_urls_map.cc
===================================================================
--- chrome/browser/search_engines/search_host_to_urls_map.cc (revision 131175)
+++ chrome/browser/search_engines/search_host_to_urls_map.cc (working copy)
@@ -59,23 +59,6 @@
host_to_urls_map_.erase(host_to_urls_map_.find(host));
}
-void SearchHostToURLsMap::Update(const TemplateURL* existing_turl,
- const TemplateURL& new_values,
- const SearchTermsData& search_terms_data) {
- DCHECK(initialized_);
- DCHECK(existing_turl);
-
- Remove(existing_turl);
-
- // Use the information from new_values but preserve existing_turl's id.
- TemplateURLID previous_id = existing_turl->id();
- TemplateURL* modifiable_turl = const_cast<TemplateURL*>(existing_turl);
- *modifiable_turl = new_values;
- modifiable_turl->set_id(previous_id);
-
- Add(existing_turl, search_terms_data);
-}
-
void SearchHostToURLsMap::UpdateGoogleBaseURLs(
const SearchTermsData& search_terms_data) {
DCHECK(initialized_);

Powered by Google App Engine
This is Rietveld 408576698