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

Unified Diff: chrome/browser/extensions/extension_garbage_collector_chromeos.cc

Issue 1773113002: Fixed a few places that incorrectly assumed that profile was initialized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comment Created 4 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_garbage_collector_chromeos.cc
diff --git a/chrome/browser/extensions/extension_garbage_collector_chromeos.cc b/chrome/browser/extensions/extension_garbage_collector_chromeos.cc
index c712224eae101ea5bf4d29bd43eae255fffc43eb..a2f7e65b6eac648e714b63587a1aaabda00e1879 100644
--- a/chrome/browser/extensions/extension_garbage_collector_chromeos.cc
+++ b/chrome/browser/extensions/extension_garbage_collector_chromeos.cc
@@ -59,6 +59,10 @@ bool ExtensionGarbageCollectorChromeOS::CanGarbageCollectSharedExtensions() {
const user_manager::UserList& active_users = user_manager->GetLoggedInUsers();
for (size_t i = 0; i < active_users.size(); i++) {
+ // If the profile for one of the active users is still initializing, we
+ // can't garbage collect.
+ if (!active_users[i]->is_profile_created())
+ return false;
Profile* profile =
chromeos::ProfileHelper::Get()->GetProfileByUserUnsafe(active_users[i]);
ExtensionGarbageCollectorChromeOS* gc =
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698