OLD | NEW |
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/ui/webui/options/managed_user_settings_handler.h" | 5 #include "chrome/browser/ui/webui/options/managed_user_settings_handler.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 { "getContentPacks", IDS_GET_CONTENT_PACKS_BUTTON }, | 29 { "getContentPacks", IDS_GET_CONTENT_PACKS_BUTTON }, |
30 { "getContentPacksURL", IDS_GET_CONTENT_PACKS_URL }, | 30 { "getContentPacksURL", IDS_GET_CONTENT_PACKS_URL }, |
31 // Content pack restriction options. | 31 // Content pack restriction options. |
32 { "contentPackSettings", IDS_CONTENT_PACK_SETTINGS_LABEL }, | 32 { "contentPackSettings", IDS_CONTENT_PACK_SETTINGS_LABEL }, |
33 { "outsideContentPacksAllow", IDS_OUTSIDE_CONTENT_PACKS_ALLOW_RADIO }, | 33 { "outsideContentPacksAllow", IDS_OUTSIDE_CONTENT_PACKS_ALLOW_RADIO }, |
34 { "outsideContentPacksWarn", IDS_OUTSIDE_CONTENT_PACKS_WARN_RADIO }, | 34 { "outsideContentPacksWarn", IDS_OUTSIDE_CONTENT_PACKS_WARN_RADIO }, |
35 { "outsideContentPacksBlock", IDS_OUTSIDE_CONTENT_PACKS_BLOCK_RADIO }, | 35 { "outsideContentPacksBlock", IDS_OUTSIDE_CONTENT_PACKS_BLOCK_RADIO }, |
36 // Other managed user settings | 36 // Other managed user settings |
37 { "advancedManagedUserSettings", IDS_ADVANCED_MANAGED_USER_LABEL }, | 37 { "advancedManagedUserSettings", IDS_ADVANCED_MANAGED_USER_LABEL }, |
38 { "enableSafeSearch", IDS_SAFE_SEARCH_ENABLED }, | 38 { "enableSafeSearch", IDS_SAFE_SEARCH_ENABLED }, |
39 { "disableProfileSignIn", IDS_SIGNIN_SYNC_DISABLED }, | 39 { "allowProfileSignIn", IDS_SIGNIN_SYNC_ALLOWED }, |
40 { "disableHistoryDeletion", IDS_HISTORY_DELETION_DISABLED }, | 40 { "disableHistoryDeletion", IDS_HISTORY_DELETION_DISABLED }, |
41 { "usePassphrase", IDS_USE_PASSPHRASE_LABEL }, | 41 { "usePassphrase", IDS_USE_PASSPHRASE_LABEL }, |
42 { "setPassphrase", IDS_SET_PASSPHRASE_BUTTON } | 42 { "setPassphrase", IDS_SET_PASSPHRASE_BUTTON } |
43 }; | 43 }; |
44 | 44 |
45 RegisterStrings(localized_strings, resources, arraysize(resources)); | 45 RegisterStrings(localized_strings, resources, arraysize(resources)); |
46 RegisterTitle(localized_strings, "managedUserSettingsPage", | 46 RegisterTitle(localized_strings, "managedUserSettingsPage", |
47 IDS_MANAGED_USER_SETTINGS_TITLE); | 47 IDS_MANAGED_USER_SETTINGS_TITLE); |
48 | 48 |
49 localized_strings->SetBoolean( | 49 localized_strings->SetBoolean( |
50 "managedUsersEnabled", | 50 "managedUsersEnabled", |
51 CommandLine::ForCurrentProcess()->HasSwitch( | 51 CommandLine::ForCurrentProcess()->HasSwitch( |
52 switches::kEnableManagedUsers)); | 52 switches::kEnableManagedUsers)); |
53 } | 53 } |
54 | 54 |
55 } // namespace options | 55 } // namespace options |
OLD | NEW |