Chromium Code Reviews| 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); |