Index: chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc |
=================================================================== |
--- chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc (revision 147715) |
+++ chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc (working copy) |
@@ -9,6 +9,7 @@ |
#include "base/string_util.h" |
#include "base/utf_string_conversions.h" |
#include "chrome/browser/history/history.h" |
+#include "chrome/browser/history/history_service_factory.h" |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_tabstrip.h" |
@@ -523,8 +524,9 @@ |
NavigateAndCommit(url2); |
// Set the desired favicon for url1. |
- profile()->GetHistoryService(Profile::EXPLICIT_ACCESS)->AddPage(url1, |
- history::SOURCE_BROWSED); |
+ HistoryServiceFactory::GetForProfile( |
+ profile(), Profile::EXPLICIT_ACCESS)->AddPage( |
+ url1, history::SOURCE_BROWSED); |
profile()->GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1, |
url1_favicon, icon_data, history::FAVICON); |