Lines Matching defs:controller_
89 return controller_->table_model();
95 scoped_ptr<KeywordEditorController> controller_;
109 controller_.reset();
118 controller_.reset(new KeywordEditorController(profile_.get()));
119 controller_->table_model()->SetObserver(this);
124 controller_->AddTemplateURL(kA, kB, "http://c");
146 controller_->AddTemplateURL(kA, kB, "http://c");
151 controller_->ModifyTemplateURL(turl, kA1, kB1, "http://c1");
162 controller_->AddTemplateURL(kA, kB, "http://c{searchTerms}");
166 int new_default = controller_->MakeDefaultTemplateURL(0);
175 new_default = controller_->MakeDefaultTemplateURL(0);
182 controller_->AddTemplateURL(kA, kB, "http://c{searchTerms}");
183 controller_->AddTemplateURL(kA1, kB1, "http://d{searchTerms}");
193 EXPECT_TRUE(controller_->CanMakeDefault(turl1));
194 EXPECT_TRUE(controller_->CanMakeDefault(turl2));
199 EXPECT_FALSE(controller_->CanMakeDefault(turl1));
200 EXPECT_FALSE(controller_->CanMakeDefault(turl2));
206 controller_->AddTemplateURL(kA, kB, "http://c{searchTerms}");
207 controller_->AddTemplateURL(kA1, kB1, "http://d{searchTerms}");
217 EXPECT_TRUE(controller_->CanEdit(turl1));
218 EXPECT_TRUE(controller_->CanEdit(turl2));
224 EXPECT_TRUE(controller_->CanEdit(turl1));
225 EXPECT_TRUE(controller_->CanEdit(turl2));
226 EXPECT_FALSE(controller_->CanEdit(model_->GetDefaultSearchProvider()));
233 controller_->AddTemplateURL(kA, kB, "http://c{searchTerms}");
237 int new_default = controller_->MakeDefaultTemplateURL(0);