summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/mock_cros_settings.cc
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-02 18:36:22 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-02 18:36:22 +0000
commit7798f4ca67a104cbea969a7356b47eb1cc63292f (patch)
tree4ce776b6e96d13a4211220c44726c87147a1b0b4 /chrome/browser/chromeos/mock_cros_settings.cc
parent9155324b8d7e4b465553e42366319a4e1587ac20 (diff)
downloadchromium_src-7798f4ca67a104cbea969a7356b47eb1cc63292f.zip
chromium_src-7798f4ca67a104cbea969a7356b47eb1cc63292f.tar.gz
chromium_src-7798f4ca67a104cbea969a7356b47eb1cc63292f.tar.bz2
Revert "Revert 53989 - Implement new mock for user options page per chromium-os:5028"
This reverts commit r54128. TBR=dhg@chromium.org BUG=chromium-os:5028 TEST=erify the user options page matches mock per chromium-os:5028. Note the underlying libcros is still missing and UI shows up mock data only. Review URL: http://codereview.chromium.org/3071013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/mock_cros_settings.cc')
-rw-r--r--chrome/browser/chromeos/mock_cros_settings.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/mock_cros_settings.cc b/chrome/browser/chromeos/mock_cros_settings.cc
index 5cec066..36aa9c1 100644
--- a/chrome/browser/chromeos/mock_cros_settings.cc
+++ b/chrome/browser/chromeos/mock_cros_settings.cc
@@ -11,15 +11,20 @@ MockCrosSettings::MockCrosSettings()
// Some mock settings
SetBoolean(kAccountsPrefAllowBWSI, true);
SetBoolean(kAccountsPrefAllowGuest, true);
+ SetBoolean(kAccountsPrefShowUserNamesOnSignIn, true);
ListValue* user_list = new ListValue;
DictionaryValue* mock_user = new DictionaryValue;
mock_user->SetString(L"email", L"mock_user_1@gmail.com");
+ mock_user->SetString(L"name", L"Mock User One");
+ mock_user->SetBoolean(L"owner", true);
user_list->Append(mock_user);
mock_user = new DictionaryValue;
mock_user->SetString(L"email", L"mock_user_2@gmail.com");
+ mock_user->SetString(L"name", L"Mock User Two");
+ mock_user->SetBoolean(L"owner", false);
user_list->Append(mock_user);
Set(kAccountsPrefUsers, user_list);