| Index: chrome/browser/memory_purger.cc
|
| ===================================================================
|
| --- chrome/browser/memory_purger.cc (revision 146646)
|
| +++ chrome/browser/memory_purger.cc (working copy)
|
| @@ -11,6 +11,7 @@
|
| #include "base/threading/thread.h"
|
| #include "chrome/browser/browser_process.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/safe_browsing/safe_browsing_service.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| @@ -110,7 +111,7 @@
|
| // Spinning up the history service is expensive, so we avoid doing it if it
|
| // hasn't been done already.
|
| HistoryService* history_service =
|
| - profiles[i]->GetHistoryServiceWithoutCreating();
|
| + HistoryServiceFactory::GetForProfileWithoutCreating(profiles[i]);
|
| if (history_service)
|
| history_service->UnloadBackend();
|
|
|
|
|