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

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

Issue 355573008: Split keyword related parts of WebDataService as KeywordWebDataService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS 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_unittest.cc
diff --git a/chrome/browser/search_engines/template_url_service_unittest.cc b/chrome/browser/search_engines/template_url_service_unittest.cc
index a5189a96787dda22287d726ff4c2a86a7c792067..bf6f46618fe0b1e1f1be6f86232aa1ae744ab993 100644
--- a/chrome/browser/search_engines/template_url_service_unittest.cc
+++ b/chrome/browser/search_engines/template_url_service_unittest.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_test_util.h"
#include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
+#include "chrome/browser/webdata/keyword_web_data_service.h"
#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "components/search_engines/template_url.h"
@@ -1181,9 +1182,8 @@ TEST_F(TemplateURLServiceTest, FailedInit) {
test_util_.VerifyLoad();
test_util_.ClearModel();
- scoped_refptr<WebDataService> web_service =
- WebDataService::FromBrowserContext(test_util_.profile());
- web_service->ShutdownDatabase();
+ WebDataServiceFactory::GetKeywordWebDataForProfile(
+ test_util_.profile(), Profile::EXPLICIT_ACCESS)->ShutdownDatabase();
test_util_.ResetModel(false);
model()->Load();

Powered by Google App Engine
This is Rietveld 408576698