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

Unified Diff: chrome/browser/importer/firefox_importer_utils.cc

Issue 9968016: Move the URL string from TemplateURLRef onto the owning TemplateURL. This will make it easier to m… (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/importer/firefox_importer_utils.cc
===================================================================
--- chrome/browser/importer/firefox_importer_utils.cc (revision 130285)
+++ chrome/browser/importer/firefox_importer_utils.cc (working copy)
@@ -203,11 +203,11 @@
TemplateURL* template_url = TemplateURLParser::Parse(NULL, content.data(),
content.length(), &param_filter);
if (template_url) {
- std::string url = template_url->url()->url();
- SearchEnginesMap::iterator iter = search_engine_for_url.find(url);
+ SearchEnginesMap::iterator iter =
+ search_engine_for_url.find(template_url->url());
if (iter == search_engine_for_url.end()) {
iter = search_engine_for_url.insert(
- std::make_pair(url, template_url)).first;
+ std::make_pair(template_url->url(), template_url)).first;
} else {
// We have already found a search engine with the same URL. We give
// priority to the latest one found, as GetSearchEnginesXMLFiles()
« no previous file with comments | « chrome/browser/importer/firefox_importer_unittest.cc ('k') | chrome/browser/importer/profile_import_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698