| Index: chrome/browser/page_info_model.cc
|
| ===================================================================
|
| --- chrome/browser/page_info_model.cc (revision 146646)
|
| +++ chrome/browser/page_info_model.cc (working copy)
|
| @@ -13,6 +13,7 @@
|
| #include "base/string16.h"
|
| #include "base/string_number_conversions.h"
|
| #include "base/utf_string_conversions.h"
|
| +#include "chrome/browser/history/history_service_factory.h"
|
| #include "chrome/browser/page_info_model_observer.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ssl/ssl_error_info.h"
|
| @@ -278,8 +279,8 @@
|
| }
|
|
|
| // Request the number of visits.
|
| - HistoryService* history = profile->GetHistoryService(
|
| - Profile::EXPLICIT_ACCESS);
|
| + HistoryService* history = HistoryServiceFactory::GetForProfile(
|
| + profile, Profile::EXPLICIT_ACCESS);
|
| if (show_history && history) {
|
| history->GetVisibleVisitCountToHost(
|
| url,
|
|
|