| Index: chrome/browser/bookmarks/bookmark_html_writer_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/bookmarks/bookmark_html_writer_unittest.cc (revision 152993)
|
| +++ chrome/browser/bookmarks/bookmark_html_writer_unittest.cc (working copy)
|
| @@ -16,6 +16,7 @@
|
| #include "chrome/browser/bookmarks/bookmark_html_writer.h"
|
| #include "chrome/browser/bookmarks/bookmark_model.h"
|
| #include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| +#include "chrome/browser/favicon/favicon_service_factory.h"
|
| #include "chrome/browser/history/history_service_factory.h"
|
| #include "chrome/browser/importer/firefox2_importer.h"
|
| #include "chrome/test/base/testing_profile.h"
|
| @@ -195,8 +196,9 @@
|
| model->AddURLWithCreationTime(f1, 0, url1_title, url1, t1);
|
| HistoryServiceFactory::GetForProfile(&profile, Profile::EXPLICIT_ACCESS)->
|
| AddPage(url1, history::SOURCE_BROWSED);
|
| - profile.GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1,
|
| - url1_favicon, icon_data, history::FAVICON);
|
| + FaviconServiceFactory::GetForProfile(
|
| + &profile, Profile::EXPLICIT_ACCESS)->SetFavicon(
|
| + url1, url1_favicon, icon_data, history::FAVICON);
|
| message_loop.RunAllPending();
|
| const BookmarkNode* f2 = model->AddFolder(f1, 1, f2_title);
|
| model->AddURLWithCreationTime(f2, 0, url2_title, url2, t2);
|
| @@ -219,8 +221,9 @@
|
|
|
| // Clear favicon so that it would be read from file.
|
| std::vector<unsigned char> empty_data;
|
| - profile.GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1,
|
| - url1_favicon, empty_data, history::FAVICON);
|
| + FaviconServiceFactory::GetForProfile(
|
| + &profile, Profile::EXPLICIT_ACCESS)->SetFavicon(
|
| + url1, url1_favicon, empty_data, history::FAVICON);
|
| message_loop.RunAllPending();
|
|
|
| // Read the bookmarks back in.
|
|
|