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

Unified Diff: chrome/browser/notifications/message_center_settings_controller.cc

Issue 18003003: Message center re-organized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile issues fixed Created 7 years, 6 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/notifications/message_center_settings_controller.cc
diff --git a/chrome/browser/notifications/message_center_settings_controller.cc b/chrome/browser/notifications/message_center_settings_controller.cc
index 683e4f581f741db05153edb4e61da316a5a3da3f..b1d8b45629922ade2f11ecf17e45b43acfeb946f 100644
--- a/chrome/browser/notifications/message_center_settings_controller.cc
+++ b/chrome/browser/notifications/message_center_settings_controller.cc
@@ -75,7 +75,9 @@ void MessageCenterSettingsController::GetNotifierList(
std::vector<Notifier*>* notifiers) {
DCHECK(notifiers);
// TODO(mukai): Fix this for multi-profile.
- Profile* profile = ProfileManager::GetDefaultProfile();
+ // Temporarily use the last used profile to prevent chrome from crashing when
+ // the default profile is not loaded.
dewittj 2013/06/28 01:13:18 I suspect you should actually use GetLastUsedProfi
sidharthms 2013/07/02 18:09:51 Done.
+ Profile* profile = ProfileManager::GetLastUsedProfile();
DesktopNotificationService* notification_service =
DesktopNotificationServiceFactory::GetForProfile(profile);

Powered by Google App Engine
This is Rietveld 408576698