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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_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/ui/bookmarks/bookmark_unittest.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_unittest.cc b/chrome/browser/ui/bookmarks/bookmark_unittest.cc
index 16b9c3a595707b811fe132aa7cf0dbc5e6b71f65..2249b7c814cd655e6e2a1adde10dc83c461828e5 100644
--- a/chrome/browser/ui/bookmarks/bookmark_unittest.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_unittest.cc
@@ -3,10 +3,12 @@
// found in the LICENSE file.
#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/ui/tabs/tab_strip_model.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/browser_with_test_window_test.h"
+#include "components/search_engines/search_terms_data.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
@@ -57,8 +59,10 @@ class BookmarkInstantExtendedTest : public BrowserWithTestWindowTest {
private:
static KeyedService* CreateTemplateURLService(
content::BrowserContext* profile) {
- return new TemplateURLService(static_cast<Profile*>(profile), NULL,
- base::Closure());
+ return new TemplateURLService(
+ static_cast<Profile*>(profile)->GetPrefs(),
+ make_scoped_ptr(new SearchTermsData), NULL,
+ scoped_ptr<TemplateURLServiceClient>(), NULL, NULL, base::Closure());
}
DISALLOW_COPY_AND_ASSIGN(BookmarkInstantExtendedTest);

Powered by Google App Engine
This is Rietveld 408576698