| Index: chrome/browser/ui/app_list/profile_loader.cc
|
| diff --git a/chrome/browser/ui/app_list/profile_loader.cc b/chrome/browser/ui/app_list/profile_loader.cc
|
| index ec8d9a4e4103d1c7b1245cadd7d168a92cbd2ecf..06a3597e0a674fdfbdaf1c5556723da03ffd6e50 100644
|
| --- a/chrome/browser/ui/app_list/profile_loader.cc
|
| +++ b/chrome/browser/ui/app_list/profile_loader.cc
|
| @@ -6,10 +6,13 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/files/file_path.h"
|
| -#include "chrome/browser/apps/scoped_keep_alive.h"
|
| +#include "chrome/browser/lifetime/keep_alive_options.h"
|
| +#include "chrome/browser/lifetime/scoped_keep_alive.h"
|
| #include "chrome/browser/ui/app_list/profile_store.h"
|
| #include "chrome/browser/ui/user_manager.h"
|
|
|
| +const KeepAliveOptions kKeepAliveOptions = {"ProfileLoader"};
|
| +
|
| ProfileLoader::ProfileLoader(ProfileStore* profile_store)
|
| : profile_store_(profile_store),
|
| profile_load_sequence_id_(0),
|
| @@ -66,7 +69,7 @@ void ProfileLoader::OnProfileLoaded(int profile_load_sequence_id,
|
| void ProfileLoader::IncrementPendingProfileLoads() {
|
| pending_profile_loads_++;
|
| if (pending_profile_loads_ == 1)
|
| - keep_alive_.reset(new ScopedKeepAlive);
|
| + keep_alive_.reset(new ScopedKeepAlive(&kKeepAliveOptions));
|
| }
|
|
|
| void ProfileLoader::DecrementPendingProfileLoads() {
|
|
|