Lines Matching refs:existing_turl
1016 TemplateURL* existing_turl = GetTemplateURLForGUID(guid);
1018 profile_, existing_turl, iter->sync_data(), &new_changes));
1030 if (!existing_turl) {
1036 if (existing_turl == GetDefaultSearchProvider()) {
1051 base::string16 updated_keyword = UniquifyKeyword(*existing_turl, true);
1052 TemplateURLData data(existing_turl->data());
1055 if (UpdateNoNotify(existing_turl, new_turl, search_terms_data()))
1067 Remove(existing_turl);
1069 if (existing_turl) {
1090 if (!existing_turl) {
1096 if (existing_keyword_turl && (existing_keyword_turl != existing_turl)) {
1102 if (UpdateNoNotify(existing_turl, *turl, search_terms_data())) {
1104 MaybeUpdateDSEAfterSync(existing_turl);
1338 TemplateURL* existing_turl,
1358 TemplateURLData data(existing_turl ?
1359 existing_turl->data() : TemplateURLData());
1415 if (!existing_turl) {
1419 } else if (existing_turl->IsGoogleSearchURLWithReplaceableKeyword(
1426 turl->data_.SetKeyword(existing_turl->keyword());
1688 TemplateURL* existing_turl,
1691 DCHECK(existing_turl);
1692 if (std::find(template_urls_.begin(), template_urls_.end(), existing_turl) ==
1696 base::string16 old_keyword(existing_turl->keyword());
1698 if (!existing_turl->sync_guid().empty())
1699 guid_to_template_map_.erase(existing_turl->sync_guid());
1703 provider_map_->Remove(existing_turl, old_search_terms_data);
1705 TemplateURLID previous_id = existing_turl->id();
1706 existing_turl->CopyFrom(new_values);
1707 existing_turl->data_.id = previous_id;
1711 provider_map_->Add(existing_turl, new_search_terms_data);
1714 const base::string16& keyword = existing_turl->keyword();
1718 keyword_to_template_map_[keyword] = existing_turl;
1727 // the change in keyword for |existing_turl|.
1730 if (!CanReplace(existing_turl))
1731 keyword_to_template_map_[keyword] = existing_turl;
1736 existing_turl->data_.SetKeyword(old_keyword);
1737 keyword_to_template_map_[old_keyword] = existing_turl;
1741 if (!existing_turl->sync_guid().empty())
1742 guid_to_template_map_[existing_turl->sync_guid()] = existing_turl;
1745 service_->UpdateKeyword(existing_turl->data());
1749 FROM_HERE, existing_turl, syncer::SyncChange::ACTION_UPDATE);
1751 if (default_search_provider_ == existing_turl &&