| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/policy_indicator_localized_strings_provider.h" | 5 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
| 9 #include "content/public/browser/web_ui_data_source.h" | 9 #include "content/public/browser/web_ui_data_source.h" |
| 10 | 10 |
| 11 namespace policy_indicator { | 11 namespace policy_indicator { |
| 12 | 12 |
| 13 void AddLocalizedStrings(content::WebUIDataSource* html_source) { | 13 void AddLocalizedStrings(content::WebUIDataSource* html_source) { |
| 14 html_source->AddLocalizedString("controlledSettingPolicy", | 14 html_source->AddLocalizedString("controlledSettingPolicy", |
| 15 IDS_OPTIONS_CONTROLLED_SETTING_POLICY); | 15 IDS_OPTIONS_CONTROLLED_SETTING_POLICY); |
| 16 html_source->AddLocalizedString("controlledSettingRecommendedMatches", | 16 html_source->AddLocalizedString("controlledSettingRecommendedMatches", |
| 17 IDS_OPTIONS_CONTROLLED_SETTING_RECOMMENDED); | 17 IDS_OPTIONS_CONTROLLED_SETTING_RECOMMENDED); |
| 18 html_source->AddLocalizedString( | 18 html_source->AddLocalizedString( |
| 19 "controlledSettingRecommendedDiffers", | 19 "controlledSettingRecommendedDiffers", |
| 20 IDS_OPTIONS_CONTROLLED_SETTING_HAS_RECOMMENDATION); | 20 IDS_OPTIONS_CONTROLLED_SETTING_HAS_RECOMMENDATION); |
| 21 // TODO(dbeam): use this string in new UI. http://crbug.com/614265#c36 |
| 21 html_source->AddLocalizedString( | 22 html_source->AddLocalizedString( |
| 22 "controlledSettingExtension", | 23 "controlledSettingExtension", |
| 23 IDS_SETTINGS_CONTROLLED_SETTING_NAMED_EXTENSION); | 24 IDS_SETTINGS_CONTROLLED_SETTING_NAMED_EXTENSION); |
| 24 #if defined(OS_CHROMEOS) | 25 #if defined(OS_CHROMEOS) |
| 25 html_source->AddLocalizedString("controlledSettingShared", | 26 html_source->AddLocalizedString("controlledSettingShared", |
| 26 IDS_OPTIONS_CONTROLLED_SETTING_SHARED); | 27 IDS_OPTIONS_CONTROLLED_SETTING_SHARED); |
| 27 html_source->AddLocalizedString("controlledSettingOwner", | 28 html_source->AddLocalizedString("controlledSettingOwner", |
| 28 IDS_OPTIONS_CONTROLLED_SETTING_OWNER); | 29 IDS_OPTIONS_CONTROLLED_SETTING_OWNER); |
| 29 #endif | 30 #endif |
| 30 } | 31 } |
| 31 | 32 |
| 32 } // namespace policy_indicator | 33 } // namespace policy_indicator |
| OLD | NEW |