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

Unified Diff: chrome/browser/profile_resetter/profile_resetter_unittest.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/profile_resetter/profile_resetter_unittest.cc
diff --git a/chrome/browser/profile_resetter/profile_resetter_unittest.cc b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
index e88fbb275eacd4cafb558c2928848768b7c23620..5d3720f53e82a8c40f15c7b3d4c3832d576f4a63 100644
--- a/chrome/browser/profile_resetter/profile_resetter_unittest.cc
+++ b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
@@ -19,10 +19,13 @@
#include "chrome/browser/profile_resetter/profile_resetter_test_base.h"
#include "chrome/browser/profile_resetter/resettable_settings_snapshot.h"
#include "chrome/browser/search_engines/template_url_service.h"
+#include "chrome/browser/search_engines/template_url_service_client.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
+#include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "components/google/core/browser/google_pref_names.h"
@@ -145,8 +148,13 @@ void ProfileResetterTest::SetUp() {
// static
KeyedService* ProfileResetterTest::CreateTemplateURLService(
content::BrowserContext* context) {
- return new TemplateURLService(static_cast<Profile*>(context), NULL,
- base::Closure());
+ Profile* profile = static_cast<Profile*>(context);
+ return new TemplateURLService(
+ profile->GetPrefs(),
+ scoped_ptr<SearchTermsData>(new UIThreadSearchTermsData(profile)),
+ WebDataServiceFactory::GetKeywordWebDataForProfile(
+ profile, Profile::EXPLICIT_ACCESS),
+ scoped_ptr<TemplateURLServiceClient>(), NULL, NULL, base::Closure());
}

Powered by Google App Engine
This is Rietveld 408576698