OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/webui/options/managed_user_settings_handler.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "grit/generated_resources.h" |
| 9 #include "grit/locale_settings.h" |
| 10 |
| 11 namespace options { |
| 12 |
| 13 ManagedUserSettingsHandler::ManagedUserSettingsHandler() { |
| 14 } |
| 15 |
| 16 ManagedUserSettingsHandler::~ManagedUserSettingsHandler() { |
| 17 } |
| 18 |
| 19 void ManagedUserSettingsHandler::GetLocalizedValues( |
| 20 base::DictionaryValue* localized_strings) { |
| 21 DCHECK(localized_strings); |
| 22 |
| 23 static OptionsStringResource resources[] = { |
| 24 // Installed content packs. |
| 25 { "installedContentPacks", IDS_INSTALLED_CONTENT_PACKS_LABEL }, |
| 26 { "getContentPacks", IDS_GET_CONTENT_PACKS_BUTTON }, |
| 27 { "getContentPacksURL", IDS_GET_CONTENT_PACKS_URL }, |
| 28 // Content pack restriction options. |
| 29 { "contentPackSettings", IDS_CONTENT_PACK_SETTINGS_LABEL }, |
| 30 { "outsideContentPacksAllow", IDS_OUTSIDE_CONTENT_PACKS_ALLOW_RADIO }, |
| 31 { "outsideContentPacksWarn", IDS_OUTSIDE_CONTENT_PACKS_WARN_RADIO }, |
| 32 { "outsideContentPacksBlock", IDS_OUTSIDE_CONTENT_PACKS_BLOCK_RADIO }, |
| 33 // Other managed user settings |
| 34 { "advancedManagedUserSettings", IDS_ADVANCED_MANAGED_USER_LABEL }, |
| 35 { "enableSafeSearch", IDS_SAFE_SEARCH_ENABLED }, |
| 36 { "disableProfileSignIn", IDS_SIGNIN_SYNC_DISABLED }, |
| 37 { "disableHistoryDeletion", IDS_HISTORY_DELETION_DISABLED }, |
| 38 { "usePassphrase", IDS_USE_PASSPHRASE_LABEL }, |
| 39 { "setPassphrase", IDS_SET_PASSPHRASE_BUTTON } |
| 40 }; |
| 41 |
| 42 RegisterStrings(localized_strings, resources, arraysize(resources)); |
| 43 RegisterTitle(localized_strings, "managedUserSettingsPage", |
| 44 IDS_MANAGED_USER_SETTINGS_PAGE_TITLE); |
| 45 } |
| 46 |
| 47 } // namespace options |
OLD | NEW |