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

Unified Diff: chrome/browser/chromeos/ownership/owner_settings_service_factory.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
Index: chrome/browser/chromeos/ownership/owner_settings_service_factory.cc
diff --git a/chrome/browser/chromeos/ownership/owner_settings_service_factory.cc b/chrome/browser/chromeos/ownership/owner_settings_service_factory.cc
index 51c448e83265e9880f192871a62ebd3a892499e3..9cf55d4122b103934efa09d71f2e17aca83e97cd 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service_factory.cc
+++ b/chrome/browser/chromeos/ownership/owner_settings_service_factory.cc
@@ -41,7 +41,7 @@ void OwnerSettingsServiceFactory::SetUsername(const std::string& username) {
const user_manager::User* user = UserManager::Get()->FindUser(username_);
if (!user || !user->is_profile_created())
return;
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(user);
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(user);
if (!profile)
return;
OwnerSettingsService* service = GetForProfile(profile);

Powered by Google App Engine
This is Rietveld 408576698