diff options
author | sidharthms@chromium.org <sidharthms@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-02 01:39:58 +0000 |
---|---|---|
committer | sidharthms@chromium.org <sidharthms@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-02 01:39:58 +0000 |
commit | 63cad5a9af714f1bb24bc86537ec6b989ca41c05 (patch) | |
tree | 560c60f09c4faaa6dce99e667e5eba4adccbc94e /chrome/browser/notifications | |
parent | e384efb0cf1bce23ba922961aa15498ecc12992a (diff) | |
download | chromium_src-63cad5a9af714f1bb24bc86537ec6b989ca41c05.zip chromium_src-63cad5a9af714f1bb24bc86537ec6b989ca41c05.tar.gz chromium_src-63cad5a9af714f1bb24bc86537ec6b989ca41c05.tar.bz2 |
Message center profile fix
Message center changed to use last used profile instead of default profile.
BUG=256415
Review URL: https://chromiumcodereview.appspot.com/18233011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r-- | chrome/browser/notifications/message_center_settings_controller.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/notifications/message_center_settings_controller.cc b/chrome/browser/notifications/message_center_settings_controller.cc index 683e4f5..c3106f1 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. + Profile* profile = ProfileManager::GetLastUsedProfileAllowedByPolicy(); DesktopNotificationService* notification_service = DesktopNotificationServiceFactory::GetForProfile(profile); |