Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3294)

Unified Diff: chrome/browser/search_engines/template_url_service_test_util.cc

Issue 367863005: No chrome dependencies in TemplateURLService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename to TemplateURLServiceClient Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url_service_test_util.cc
diff --git a/chrome/browser/search_engines/template_url_service_test_util.cc b/chrome/browser/search_engines/template_url_service_test_util.cc
index c3760e34cf4171b1fdfb6ed908a6173d7927acb2..68cff156d0ba17596d79da86d5db02f6303f0b92 100644
--- a/chrome/browser/search_engines/template_url_service_test_util.cc
+++ b/chrome/browser/search_engines/template_url_service_test_util.cc
@@ -8,6 +8,7 @@
#include "base/run_loop.h"
#include "base/strings/string_split.h"
#include "base/threading/thread.h"
+#include "chrome/browser/search_engines/chrome_template_url_service_client.h"
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
@@ -31,7 +32,14 @@ class TestingTemplateURLService : public TemplateURLService {
}
explicit TestingTemplateURLService(Profile* profile)
- : TemplateURLService(profile, NULL, base::Closure()) {
+ : TemplateURLService(
+ profile->GetPrefs(),
+ scoped_ptr<SearchTermsData>(new UIThreadSearchTermsData(profile)),
+ WebDataServiceFactory::GetKeywordWebDataForProfile(
+ profile, Profile::EXPLICIT_ACCESS),
+ scoped_ptr<TemplateURLServiceClient>(
+ new ChromeTemplateURLServiceClient(profile)), NULL, NULL,
+ base::Closure()) {
}
base::string16 GetAndClearSearchTerm() {

Powered by Google App Engine
This is Rietveld 408576698