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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 302433010: Pass an instance of FaviconClient to FaviconService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@latest2
Patch Set: Added include. 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
« no previous file with comments | « chrome/browser/history/android/sqlite_cursor_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index f54fc3540ef1c8c73fb617cf22c9895bb996bf16..021e53fb4f40b5e29ca0a88540b207c9ac23841f 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/extensions/extension_special_storage_policy.h"
#include "chrome/browser/extensions/extension_system_factory.h"
#include "chrome/browser/extensions/test_extension_system.h"
+#include "chrome/browser/favicon/chrome_favicon_client_factory.h"
#include "chrome/browser/favicon/favicon_service.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/history/chrome_history_client.h"
@@ -426,7 +427,9 @@ TestingProfile::~TestingProfile() {
}
static KeyedService* BuildFaviconService(content::BrowserContext* profile) {
- return new FaviconService(static_cast<Profile*>(profile));
+ FaviconClient* favicon_client =
+ ChromeFaviconClientFactory::GetForProfile(static_cast<Profile*>(profile));
+ return new FaviconService(static_cast<Profile*>(profile), favicon_client);
}
void TestingProfile::CreateFaviconService() {
« no previous file with comments | « chrome/browser/history/android/sqlite_cursor_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698