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

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

Issue 445353004: GetProfileByUser deprecated and renamed to GetProfileByUserUnsafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 6 years, 4 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 | « chrome/browser/net/nss_context_chromeos_browsertest.cc ('k') | 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/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 1e82df5aab71f045f723f33fef0f61a1e9f7f30b..a163942c2eaa477e873f77eb7699e3cccf8724d7 100644
--- a/chrome/browser/notifications/message_center_settings_controller.cc
+++ b/chrome/browser/notifications/message_center_settings_controller.cc
@@ -452,7 +452,8 @@ void MessageCenterSettingsController::CreateNotifierGroupForGuestLogin() {
return;
user_manager::User* user = user_manager->GetActiveUser();
- Profile* profile = chromeos::ProfileHelper::Get()->GetProfileByUser(user);
+ Profile* profile =
+ chromeos::ProfileHelper::Get()->GetProfileByUserUnsafe(user);
DCHECK(profile);
notifier_groups_.push_back(
new message_center::ProfileNotifierGroup(gfx::Image(user->GetImage()),
« no previous file with comments | « chrome/browser/net/nss_context_chromeos_browsertest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698