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

Unified Diff: components/user_manager/fake_user_manager.cc

Issue 2890843002: Policy implementation for encryptfs to ext4 migration strategy (Closed)
Patch Set: Fixed review comments Created 3 years, 7 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: components/user_manager/fake_user_manager.cc
diff --git a/components/user_manager/fake_user_manager.cc b/components/user_manager/fake_user_manager.cc
index 80799cc3c330b5d63f0b3ca707078690a9c8151c..31a09443ecc5349bbcd758515967745cac024ba3 100644
--- a/components/user_manager/fake_user_manager.cc
+++ b/components/user_manager/fake_user_manager.cc
@@ -11,6 +11,10 @@
#include "base/sys_info.h"
#include "base/task_runner.h"
#include "chromeos/chromeos_switches.h"
+#include "components/prefs/pref_registry_simple.h"
+#include "components/prefs/pref_service_factory.h"
+#include "components/prefs/testing_pref_service.h"
+#include "components/prefs/testing_pref_store.h"
#include "components/user_manager/user_names.h"
#include "components/user_manager/user_type.h"
@@ -274,8 +278,12 @@ const std::string& FakeUserManager::GetApplicationLocale() const {
return default_locale;
}
+void FakeUserManager::SetLocalState(PrefService* pref_service) {
+ pref_service_ = pref_service;
+}
+
PrefService* FakeUserManager::GetLocalState() const {
- return nullptr;
+ return pref_service_;
}
bool FakeUserManager::IsEnterpriseManaged() const {

Powered by Google App Engine
This is Rietveld 408576698