Searched defs:template_urls (Results 1 - 15 of 15) sorted by relevance

/external/chromium/chrome/browser/webdata/
H A Dkeyword_table_unittest.cc87 std::vector<TemplateURL*> template_urls; local
88 EXPECT_TRUE(db.GetKeywordTable()->GetKeywords(&template_urls));
90 EXPECT_EQ(1U, template_urls.size());
91 const TemplateURL* restored_url = template_urls.front();
129 template_urls.clear();
130 EXPECT_TRUE(db.GetKeywordTable()->GetKeywords(&template_urls));
132 EXPECT_EQ(0U, template_urls.size());
181 std::vector<TemplateURL*> template_urls; local
182 EXPECT_TRUE(db.GetKeywordTable()->GetKeywords(&template_urls));
184 EXPECT_EQ(1U, template_urls
236 std::vector<TemplateURL*> template_urls; local
[all...]
/external/chromium/chrome/browser/search_engines/
H A Dsearch_host_to_urls_map.cc20 const std::vector<const TemplateURL*>& template_urls,
27 for (size_t i = 0; i < template_urls.size(); ++i)
28 Add(template_urls[i], search_terms_data);
19 Init( const std::vector<const TemplateURL*>& template_urls, const SearchTermsData& search_terms_data) argument
H A Dsearch_host_to_urls_map_unittest.cc42 std::vector<const TemplateURL*> template_urls; local
43 template_urls.push_back(&t_urls_[0]);
44 template_urls.push_back(&t_urls_[1]);
48 provider_map_->Init(template_urls, search_terms_data);
H A Dutil.cc40 std::vector<TemplateURL*>* template_urls,
42 DCHECK(template_urls);
46 for (std::vector<TemplateURL*>::iterator i = template_urls->begin();
47 i != template_urls->end(); ) {
54 i = template_urls->erase(i);
70 std::vector<TemplateURL*>* template_urls,
73 DCHECK(template_urls);
79 for (std::vector<TemplateURL*>::iterator i(template_urls->begin());
80 i != template_urls->end(); ++i) {
124 template_urls
39 RemoveDuplicatePrepopulateIDs( std::vector<TemplateURL*>* template_urls, WebDataService* service) argument
67 MergeEnginesFromPrepopulateData( PrefService* prefs, WebDataService* service, std::vector<TemplateURL*>* template_urls, const TemplateURL** default_search_provider) argument
151 GetSearchProvidersUsingKeywordResult( const WDTypedResult& result, WebDataService* service, PrefService* prefs, std::vector<TemplateURL*>* template_urls, const TemplateURL** default_search_provider, int* new_resource_keyword_version) argument
[all...]
H A Dtemplate_url_model.cc56 std::vector<TemplateURL*>* template_urls,
58 DCHECK(template_urls);
60 for (std::vector<TemplateURL*>::iterator i = template_urls->begin();
61 i != template_urls->end(); ) {
67 i = template_urls->erase(i);
473 std::vector<TemplateURL*> template_urls; local
479 &template_urls,
487 RemoveProvidersCreatedByPolicy(&template_urls, &default_search_provider);
495 SetTemplateURLs(template_urls);
512 !template_urls
55 RemoveProvidersCreatedByPolicy( std::vector<TemplateURL*>* template_urls, const TemplateURL** default_search_provider) argument
[all...]
/external/chromium/chrome/browser/importer/
H A Dexternal_process_importer_bridge.cc59 const std::vector<TemplateURL*>& template_urls,
63 template_urls, default_keyword_index, unique_on_host_and_path);
58 SetKeywords( const std::vector<TemplateURL*>& template_urls, int default_keyword_index, bool unique_on_host_and_path) argument
H A Din_process_importer_bridge.cc67 const std::vector<TemplateURL*>& template_urls,
73 writer_, &ProfileWriter::AddKeywords, template_urls,
66 SetKeywords( const std::vector<TemplateURL*>& template_urls, int default_keyword_index, bool unique_on_host_and_path) argument
H A Dprofile_import_process_client.cc74 const std::vector<TemplateURL>& template_urls,
73 OnKeywordsImportReady( const std::vector<TemplateURL>& template_urls, int default_keyword_index, bool unique_on_host_and_path) argument
H A Dexternal_process_importer_client.cc226 const std::vector<TemplateURL>& template_urls,
232 template_url_vec.reserve(template_urls.size());
234 for (iter = template_urls.begin();
235 iter != template_urls.end();
225 OnKeywordsImportReady( const std::vector<TemplateURL>& template_urls, int default_keyword_index, bool unique_on_host_and_path) argument
H A Dprofile_writer.cc197 std::vector<const TemplateURL*> template_urls = model.GetTemplateURLs(); local
198 for (size_t i = 0; i < template_urls.size(); ++i) {
199 const std::string host_path = BuildHostPathKey(template_urls[i], false);
203 (template_urls[i]->show_in_default_list() &&
209 (*host_path_map)[host_path] = template_urls[i];
216 void ProfileWriter::AddKeywords(const std::vector<TemplateURL*>& template_urls, argument
224 for (std::vector<TemplateURL*>::const_iterator i = template_urls.begin();
225 i != template_urls.end(); ++i) {
229 (i - template_urls.begin() == default_keyword_index);
H A Dfirefox2_importer.cc155 std::vector<TemplateURL*>* template_urls,
234 if (template_urls) {
239 template_urls->push_back(t_url);
303 std::vector<TemplateURL*> template_urls; local
313 first_folder_name, this, &bookmarks, &template_urls,
325 if (!parsing_bookmarks_html_file_ && !template_urls.empty() &&
327 bridge_->SetKeywords(template_urls, -1, false);
329 STLDeleteContainerPointers(template_urls.begin(), template_urls.end());
148 ImportBookmarksFile( const FilePath& file_path, const std::set<GURL>& default_urls, bool import_to_bookmark_bar, const string16& first_folder_name, Importer* importer, std::vector<ProfileWriter::BookmarkEntry>* bookmarks, std::vector<TemplateURL*>* template_urls, std::vector<history::ImportedFaviconUsage>* favicons) argument
H A Dfirefox3_importer.cc186 std::vector<TemplateURL*> template_urls; local
284 template_urls.push_back(t_url);
299 if (!template_urls.empty() && !cancelled()) {
300 bridge_->SetKeywords(template_urls, -1, false);
302 STLDeleteContainerPointers(template_urls.begin(), template_urls.end());
H A Dimporter_unittest.cc617 virtual void AddKeywords(const std::vector<TemplateURL*>& template_urls, argument
620 for (size_t i = 0; i < template_urls.size(); ++i) {
624 string16 keyword = template_urls[i]->keyword();
626 if (template_urls[i]->keyword() ==
628 EXPECT_EQ(kFirefox2Keywords[j].url, template_urls[i]->url()->url());
638 EXPECT_LT(default_keyword_index, static_cast<int>(template_urls.size()));
639 TemplateURL* default_turl = template_urls[default_keyword_index];
644 STLDeleteContainerPointers(template_urls.begin(), template_urls.end());
827 void AddKeywords(const std::vector<TemplateURL*>& template_urls, argument
[all...]
/external/chromium/chrome/browser/ui/views/
H A Dfirst_run_search_engine_view.cc206 std::vector<const TemplateURL*> template_urls = local
211 if (template_urls.size() < 2) {
223 // in template_urls, store it in |default_choice| and provide it as a
230 if (template_urls.size() > 3) {
231 for (search_engine_iter = template_urls.begin() + 3;
232 search_engine_iter != template_urls.end();
245 for (search_engine_iter = template_urls.begin();
246 search_engine_iter < template_urls.begin() +
247 (template_urls.size() < 3 ? 2 : 3);
/external/chromium/chrome/browser/automation/
H A Dtesting_automation_provider.cc2879 std::vector<const TemplateURL*> template_urls = url_model->GetTemplateURLs(); local
2881 template_urls.begin(); it != template_urls.end(); ++it) {

Completed in 191 milliseconds