Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc |
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc |
index 10cd110ca777684a9b2fa9326496554b3336b2f0..c544f8acf13034eb3baad4a11545feaa7d7f99de 100644 |
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc |
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc |
@@ -23,6 +23,7 @@ |
#include "base/values.h" |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/extensions/test_extension_system.h" |
+#include "chrome/browser/favicon/chrome_favicon_client_factory.h" |
#include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
#include "chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h" |
#include "chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.h" |
@@ -1991,6 +1992,11 @@ TEST_F(ChromeLauncherControllerTest, BrowserMenuGeneration) { |
} |
#if defined(OS_CHROMEOS) |
+static KeyedService* BuildChromeFaviconClient( |
+ content::BrowserContext* profile) { |
+ return new ChromeFaviconClient(static_cast<Profile*>(profile)); |
+} |
+ |
// Check the multi profile case where only user related browsers should show |
// up. |
TEST_F(MultiProfileMultiBrowserShelfLayoutChromeLauncherControllerTest, |
@@ -2020,6 +2026,8 @@ TEST_F(MultiProfileMultiBrowserShelfLayoutChromeLauncherControllerTest, |
// users running browser list. |
std::string user2 = "user2"; |
TestingProfile* profile2 = CreateMultiUserProfile(user2); |
+ ChromeFaviconClientFactory::GetInstance()->SetTestingFactory( |
+ profile2, BuildChromeFaviconClient); |
scoped_ptr<Browser> browser2( |
CreateBrowserAndTabWithProfile(profile2, user2, "http://test2")); |
base::string16 one_menu_item2[] = { ASCIIToUTF16(user2) }; |