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

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

Issue 10006037: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile Created 8 years, 8 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_sync_unittest.cc
diff --git a/chrome/browser/search_engines/template_url_service_sync_unittest.cc b/chrome/browser/search_engines/template_url_service_sync_unittest.cc
index 9fb42a43c6b1e034dfcb44a2d76346c20b6bd366..2cb20ab87d21664d777503065b658398d38843bd 100644
--- a/chrome/browser/search_engines/template_url_service_sync_unittest.cc
+++ b/chrome/browser/search_engines/template_url_service_sync_unittest.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/search_engines/template_url_service_test_util.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_pref_service.h"
@@ -227,8 +228,7 @@ class TemplateURLServiceSyncTest : public testing::Test {
TemplateURLServiceSyncTest::TemplateURLServiceSyncTest()
: sync_processor_(new TestChangeProcessor),
sync_processor_delegate_(new SyncChangeProcessorDelegate(
- sync_processor_.get())) {
-}
+ sync_processor_.get())) {}
void TemplateURLServiceSyncTest::SetUp() {
test_util_a_.SetUp();
@@ -237,6 +237,8 @@ void TemplateURLServiceSyncTest::SetUp() {
// just foul them up).
test_util_a_.ChangeModelToLoadState();
profile_b_.reset(new TestingProfile);
+ WebDataServiceFactory::GetInstance()->SetTestingFactory(profile_b_.get(),
+ NULL);
TemplateURLServiceFactory::GetInstance()->RegisterUserPrefsOnProfile(
profile_b_.get());
model_b_.reset(new TemplateURLService(profile_b_.get()));

Powered by Google App Engine
This is Rietveld 408576698