Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Unified Diff: chrome/browser/ui/app_list/profile_loader.cc

Issue 1708343002: Add ScopedKeepAlive to c/b/lifetime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments on PS15 Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..7bc57f1f35c0a53e052848893e3368ac4970a93b 100644
--- a/chrome/browser/ui/app_list/profile_loader.cc
+++ b/chrome/browser/ui/app_list/profile_loader.cc
@@ -6,7 +6,8 @@
#include "base/bind.h"
#include "base/files/file_path.h"
-#include "chrome/browser/apps/scoped_keep_alive.h"
+#include "chrome/browser/lifetime/keep_alive_types.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"
@@ -66,7 +67,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(KeepAliveOrigin::PROFILE_LOADER));
}
void ProfileLoader::DecrementPendingProfileLoads() {

Powered by Google App Engine
This is Rietveld 408576698