Searched refs:url_model (Results 1 – 9 of 9) sorted by relevance
82 return !url_model()->is_default_search_managed() || in CanEdit()83 url != url_model()->GetDefaultSearchProvider(); in CanEdit()87 return url_model()->CanMakeDefault(url); in CanMakeDefault()91 return url != url_model()->GetDefaultSearchProvider(); in CanRemove()105 return url_model()->loaded(); in loaded()112 TemplateURLModel* KeywordEditorController::url_model() const { in url_model() function in KeywordEditorController
157 TemplateURLModel* url_model = in GenerateKeywordIfNecessary() local159 if (!url_model) in GenerateKeywordIfNecessary()162 if (!url_model->loaded()) { in GenerateKeywordIfNecessary()163 url_model->Load(); in GenerateKeywordIfNecessary()169 if (!url_model->CanReplaceKeyword(keyword, url, ¤t_url)) in GenerateKeywordIfNecessary()178 url_model->Remove(current_url); in GenerateKeywordIfNecessary()199 url_model->Add(new_url); in GenerateKeywordIfNecessary()
68 TemplateURLModel* url_model() const;
284 TemplateURLModel* url_model = profile()->GetTemplateURLModel(); in ScheduleDownload() local285 if (!url_model) in ScheduleDownload()291 if (!url_model->loaded()) { in ScheduleDownload()292 url_model->Load(); in ScheduleDownload()296 url_model->GetTemplateURLForKeyword(keyword); in ScheduleDownload()
2860 TemplateURLModel* url_model(profile_->GetTemplateURLModel()); in LoadSearchEngineInfo() local2861 if (url_model->loaded()) { in LoadSearchEngineInfo()2865 url_model->AddObserver(new AutomationProviderSearchEngineObserver( in LoadSearchEngineInfo()2867 url_model->Load(); in LoadSearchEngineInfo()2876 TemplateURLModel* url_model(profile_->GetTemplateURLModel()); in GetSearchEngineInfo() local2879 std::vector<const TemplateURL*> template_urls = url_model->GetTemplateURLs(); in GetSearchEngineInfo()2888 (*it) == url_model->GetDefaultSearchProvider()); in GetSearchEngineInfo()2908 TemplateURLModel* url_model(profile_->GetTemplateURLModel()); in AddOrEditSearchEngine() local2926 template_url = url_model->GetTemplateURLForKeyword(UTF8ToUTF16(keyword)); in AddOrEditSearchEngine()2932 url_model->AddObserver(new AutomationProviderSearchEngineObserver( in AddOrEditSearchEngine()[all …]
1561 TemplateURLModel* url_model = provider_->profile()->GetTemplateURLModel(); in OnTemplateURLModelChanged() local1562 url_model->RemoveObserver(this); in OnTemplateURLModelChanged()
314 void LogKeywords(const TemplateURLModel* url_model);
1652 void MetricsService::LogKeywords(const TemplateURLModel* url_model) { in LogKeywords() argument1653 DCHECK(url_model); in LogKeywords()1658 static_cast<int>(url_model->GetTemplateURLs().size())); in LogKeywords()
107 list_controller_->url_model()->GetDefaultSearchProvider(); in OnModelChanged()