Index: chrome/browser/importer/firefox_importer_utils.cc |
=================================================================== |
--- chrome/browser/importer/firefox_importer_utils.cc (revision 130565) |
+++ chrome/browser/importer/firefox_importer_utils.cc (working copy) |
@@ -203,11 +203,11 @@ |
TemplateURL* template_url = TemplateURLParser::Parse(NULL, content.data(), |
content.length(), ¶m_filter); |
if (template_url) { |
- SearchEnginesMap::iterator iter = |
- search_engine_for_url.find(template_url->url()); |
+ std::string url = template_url->url()->url(); |
+ SearchEnginesMap::iterator iter = search_engine_for_url.find(url); |
if (iter == search_engine_for_url.end()) { |
iter = search_engine_for_url.insert( |
- std::make_pair(template_url->url(), template_url)).first; |
+ std::make_pair(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() |