Home
last modified time | relevance | path

Searched refs:new_keyword (Results 1 – 3 of 3) sorted by relevance

/external/chromium/chrome/browser/search_engines/
Dtemplate_url_fetcher.cc163 string16 new_keyword = TemplateURLModel::GenerateKeyword( in AddSearchProvider() local
165 if (!new_keyword.empty()) in AddSearchProvider()
166 keyword_ = new_keyword; in AddSearchProvider()
186 string16 new_keyword; in AddSearchProvider() local
189 new_keyword = keyword_; in AddSearchProvider()
192 new_keyword.append(base::IntToString16(i)); in AddSearchProvider()
193 if (!model->GetTemplateURLForKeyword(new_keyword) || in AddSearchProvider()
194 model->CanReplaceKeyword(new_keyword, in AddSearchProvider()
199 new_keyword.clear(); in AddSearchProvider()
203 if (new_keyword.empty()) { in AddSearchProvider()
[all …]
Dtemplate_url_model_unittest.cc570 const string16 new_keyword(ASCIIToUTF16("b")); in TEST_F() local
572 model()->ResetTemplateURL(t_url, new_short_name, new_keyword, new_url); in TEST_F()
574 ASSERT_EQ(new_keyword, t_url->keyword()); in TEST_F()
578 ASSERT_TRUE(model()->GetTemplateURLForKeyword(new_keyword) == t_url); in TEST_F()
588 const TemplateURL* read_url = model()->GetTemplateURLForKeyword(new_keyword); in TEST_F()
/external/chromium/chrome/browser/automation/
Dtesting_automation_provider.cc2911 string16 new_keyword; in AddOrEditSearchEngine() local
2915 !args->GetString("new_keyword", &new_keyword) || in AddOrEditSearchEngine()
2934 controller->ModifyTemplateURL(template_url, new_title, new_keyword, in AddOrEditSearchEngine()
2939 controller->AddTemplateURL(new_title, new_keyword, new_ref_url); in AddOrEditSearchEngine()