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

Side by Side Diff: chrome/browser/chromeos/stub_cros_settings_provider.cc

Issue 9701084: Integrate Kiosk Mode with enterprise policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yacf Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/stub_cros_settings_provider.h" 5 #include "chrome/browser/chromeos/stub_cros_settings_provider.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/chromeos/cros_settings.h" 9 #include "chrome/browser/chromeos/cros_settings.h"
10 #include "chrome/browser/chromeos/cros_settings_names.h" 10 #include "chrome/browser/chromeos/cros_settings_names.h"
11 #include "chrome/browser/chromeos/login/user_manager.h" 11 #include "chrome/browser/chromeos/login/user_manager.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 namespace { 15 namespace {
16 16
17 const char* kHandledSettings[] = { 17 const char* kHandledSettings[] = {
18 kAccountsPrefAllowGuest, 18 kAccountsPrefAllowGuest,
19 kAccountsPrefAllowNewUser, 19 kAccountsPrefAllowNewUser,
20 kAccountsPrefShowUserNamesOnSignIn, 20 kAccountsPrefShowUserNamesOnSignIn,
21 kAccountsPrefUsers, 21 kAccountsPrefUsers,
22 kAccountsPrefEphemeralUsersEnabled, 22 kAccountsPrefEphemeralUsersEnabled,
23 kDeviceOwner, 23 kDeviceOwner,
24 kReleaseChannel, 24 kReleaseChannel,
25 kReportDeviceVersionInfo, 25 kReportDeviceVersionInfo,
26 kReportDeviceActivityTimes, 26 kReportDeviceActivityTimes,
27 kReportDeviceBootMode, 27 kReportDeviceBootMode,
28 kSettingProxyEverywhere, 28 kSettingProxyEverywhere,
29 kSignedDataRoamingEnabled, 29 kSignedDataRoamingEnabled,
30 kStatsReportingPref 30 kStatsReportingPref,
31 // Kiosk mode settings.
32 kIdleLogoutTimeout,
33 kIdleLogoutWarningDuration,
34 kScreenSaverExtensionId,
35 kScreenSaverTimeout
31 }; 36 };
32 37
33 } // namespace 38 } // namespace
34 39
35 StubCrosSettingsProvider::StubCrosSettingsProvider( 40 StubCrosSettingsProvider::StubCrosSettingsProvider(
36 const NotifyObserversCallback& notify_cb) 41 const NotifyObserversCallback& notify_cb)
37 : CrosSettingsProvider(notify_cb) { 42 : CrosSettingsProvider(notify_cb) {
38 SetDefaults(); 43 SetDefaults();
39 } 44 }
40 45
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 80 }
76 81
77 void StubCrosSettingsProvider::SetDefaults() { 82 void StubCrosSettingsProvider::SetDefaults() {
78 values_.SetBoolean(kAccountsPrefAllowGuest, true); 83 values_.SetBoolean(kAccountsPrefAllowGuest, true);
79 values_.SetBoolean(kAccountsPrefAllowNewUser, true); 84 values_.SetBoolean(kAccountsPrefAllowNewUser, true);
80 values_.SetBoolean(kAccountsPrefShowUserNamesOnSignIn, true); 85 values_.SetBoolean(kAccountsPrefShowUserNamesOnSignIn, true);
81 // |kDeviceOwner| will be set to the logged-in user by |UserManager|. 86 // |kDeviceOwner| will be set to the logged-in user by |UserManager|.
82 } 87 }
83 88
84 } // namespace chromeos 89 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698