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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 895803003: [Profiles] Remove the NotificationService from the ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index b524dc385c337a064bfc5e98f55168bb9db6161e..20957bd50d2c3ede449e0c361b748b254f190304 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -259,10 +259,6 @@ ProfileManager::ProfileManager(const base::FilePath& user_data_dir)
this,
chrome::NOTIFICATION_BROWSER_CLOSE_CANCELLED,
content::NotificationService::AllSources());
- registrar_.Add(
- this,
- chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED,
- content::NotificationService::AllSources());
if (ProfileShortcutManager::IsFeatureEnabled() && !user_data_dir_.empty())
profile_shortcut_manager_.reset(ProfileShortcutManager::Create(
@@ -919,10 +915,6 @@ void ProfileManager::Observe(
}
break;
}
- case chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED: {
- save_active_profiles = !closing_all_browsers_;
- break;
- }
default: {
NOTREACHED();
break;

Powered by Google App Engine
This is Rietveld 408576698