| Index: chrome/browser/custom_home_pages_table_model.cc
|
| ===================================================================
|
| --- chrome/browser/custom_home_pages_table_model.cc (revision 146646)
|
| +++ chrome/browser/custom_home_pages_table_model.cc (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include "base/bind_helpers.h"
|
| #include "base/i18n/rtl.h"
|
| #include "base/utf_string_conversions.h"
|
| +#include "chrome/browser/history/history_service_factory.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -158,8 +159,8 @@
|
| // Cancel any pending load requests now so we don't deref a bogus pointer when
|
| // we get the loaded notification.
|
| if (entry->title_handle) {
|
| - HistoryService* history_service =
|
| - profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| + HistoryService* history_service = HistoryServiceFactory::GetForProfile(
|
| + profile_, Profile::EXPLICIT_ACCESS);
|
| if (history_service)
|
| history_service->CancelRequest(entry->title_handle);
|
| }
|
| @@ -217,8 +218,8 @@
|
| }
|
|
|
| void CustomHomePagesTableModel::LoadTitle(Entry* entry) {
|
| - HistoryService* history_service =
|
| - profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| + HistoryService* history_service = HistoryServiceFactory::GetForProfile(
|
| + profile_, Profile::EXPLICIT_ACCESS);
|
| if (history_service) {
|
| entry->title_handle = history_service->QueryURL(entry->url, false,
|
| &history_query_consumer_,
|
|
|