/external/chromium/chrome/browser/search_engines/ |
D | template_url_fetcher.cc | 163 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 …]
|
D | template_url_model_unittest.cc | 570 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_org/chrome/browser/sync/test/integration/ |
D | search_engines_helper.cc | 220 const base::string16& new_keyword, in EditSearchEngine() argument 226 ASSERT_FALSE(new_keyword.empty()); in EditSearchEngine() 227 service->ResetTemplateURL(turl, short_name, new_keyword, url); in EditSearchEngine() 234 new_keyword, url); in EditSearchEngine()
|
D | search_engines_helper.h | 56 const base::string16& new_keyword,
|
/external/chromium_org/chrome/browser/search_engines/ |
D | template_url_service_sync_unittest.cc | 477 base::string16 new_keyword = model()->UniquifyKeyword(*turl, false); in TEST_F() local 478 EXPECT_EQ(ASCIIToUTF16("new.com"), new_keyword); in TEST_F() 479 EXPECT_EQ(NULL, model()->GetTemplateURLForKeyword(new_keyword)); in TEST_F() 487 new_keyword = model()->UniquifyKeyword(*turl, false); in TEST_F() 488 EXPECT_EQ(ASCIIToUTF16("key1_"), new_keyword); in TEST_F() 489 EXPECT_EQ(NULL, model()->GetTemplateURLForKeyword(new_keyword)); in TEST_F() 495 new_keyword = model()->UniquifyKeyword(*turl, false); in TEST_F() 496 EXPECT_EQ(ASCIIToUTF16("key1__"), new_keyword); in TEST_F() 497 EXPECT_EQ(NULL, model()->GetTemplateURLForKeyword(new_keyword)); in TEST_F() 503 new_keyword = model()->UniquifyKeyword(*turl, true); in TEST_F() [all …]
|
D | template_url_service_unittest.cc | 760 const base::string16 new_keyword(ASCIIToUTF16("b")); in TEST_F() local 762 model()->ResetTemplateURL(t_url, new_short_name, new_keyword, new_url); in TEST_F() 764 ASSERT_EQ(new_keyword, t_url->keyword()); in TEST_F() 768 ASSERT_EQ(t_url, model()->GetTemplateURLForKeyword(new_keyword)); in TEST_F() 778 const TemplateURL* read_url = model()->GetTemplateURLForKeyword(new_keyword); in TEST_F()
|
D | template_url_service.cc | 2228 base::string16 new_keyword = in AddNoNotify() local 2231 existing_keyword_turl->short_name(), new_keyword, in AddNoNotify() 2422 base::string16 new_keyword = UniquifyKeyword(*loser, false); in ResolveSyncKeywordConflict() local 2423 DCHECK(!GetTemplateURLForKeyword(new_keyword)); in ResolveSyncKeywordConflict() 2427 unapplied_sync_turl->data_.SetKeyword(new_keyword); in ResolveSyncKeywordConflict() 2431 data.SetKeyword(new_keyword); in ResolveSyncKeywordConflict()
|
/external/chromium/chrome/browser/automation/ |
D | testing_automation_provider.cc | 2911 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()
|
/external/chromium_org/chrome/browser/automation/ |
D | testing_automation_provider.cc | 2713 base::string16 new_keyword; in AddOrEditSearchEngine() local 2717 !args->GetString("new_keyword", &new_keyword) || in AddOrEditSearchEngine() 2737 controller->ModifyTemplateURL(template_url, new_title, new_keyword, in AddOrEditSearchEngine() 2742 controller->AddTemplateURL(new_title, new_keyword, new_ref_url); in AddOrEditSearchEngine()
|
/external/chromium_org/chrome/test/pyautolib/ |
D | pyauto.py | 2026 def EditSearchEngine(self, keyword, new_title, new_keyword, new_url, argument 2043 'new_keyword': new_keyword,
|