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

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/chromeos/preferences.h ('k') | chrome/browser/chromeos/preferences_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.cc
diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
index f6492543705bf18d2a44a259f6b39d03a87ffb2a..60f7bae8923f291e742665542e3a7325bc430c41 100644
--- a/chrome/browser/chromeos/preferences.cc
+++ b/chrome/browser/chromeos/preferences.cc
@@ -71,7 +71,7 @@ Preferences::Preferences(input_method::InputMethodManager* input_method_manager)
Preferences::~Preferences() {
prefs_->RemoveObserver(this);
- UserManager::Get()->RemoveSessionStateObserver(this);
+ user_manager::UserManager::Get()->RemoveSessionStateObserver(this);
// If shell instance is destoryed before this preferences instance, there is
// no need to remove this shell observer.
if (ash::Shell::HasInstance())
@@ -353,10 +353,11 @@ void Preferences::Init(PrefServiceSyncable* prefs,
const user_manager::User* user) {
DCHECK(user);
user_ = user;
- user_is_primary_ = UserManager::Get()->GetPrimaryUser() == user_;
+ user_is_primary_ =
+ user_manager::UserManager::Get()->GetPrimaryUser() == user_;
InitUserPrefs(prefs);
- UserManager::Get()->AddSessionStateObserver(this);
+ user_manager::UserManager::Get()->AddSessionStateObserver(this);
// This causes OnIsSyncingChanged to be called when the value of
// PrefService::IsSyncing() changes.
@@ -390,7 +391,7 @@ void Preferences::ApplyPreferences(ApplyReason reason,
const std::string& pref_name) {
DCHECK(reason != REASON_PREF_CHANGED || !pref_name.empty());
const bool user_is_owner =
- UserManager::Get()->GetOwnerEmail() == user_->email();
+ user_manager::UserManager::Get()->GetOwnerEmail() == user_->email();
const bool user_is_active = user_->is_active();
system::TouchpadSettings touchpad_settings;
« no previous file with comments | « chrome/browser/chromeos/preferences.h ('k') | chrome/browser/chromeos/preferences_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698