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

Unified Diff: chrome/browser/ui/webui/policy_indicator_localized_strings_provider.cc

Issue 1369403006: Add cr-policy-network-indicator and add to internet settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate policy indicator strings Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/policy_indicator_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/policy_indicator_localized_strings_provider.cc b/chrome/browser/ui/webui/policy_indicator_localized_strings_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5614f46cffe961e952e251d52235d310bafa4252
--- /dev/null
+++ b/chrome/browser/ui/webui/policy_indicator_localized_strings_provider.cc
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
+
+#include "chrome/grit/generated_resources.h"
+#include "content/public/browser/web_ui_data_source.h"
+
+namespace policy_indicator {
+
+void AddLocalizedStrings(content::WebUIDataSource* html_source) {
+ html_source->AddLocalizedString("controlledSettingPolicy",
+ IDS_OPTIONS_CONTROLLED_SETTING_POLICY);
+ html_source->AddLocalizedString("controlledSettingRecommendedMatches",
+ IDS_OPTIONS_CONTROLLED_SETTING_RECOMMENDED);
+ html_source->AddLocalizedString(
+ "controlledSettingRecommendedDiffers",
+ IDS_OPTIONS_CONTROLLED_SETTING_HAS_RECOMMENDATION);
+ html_source->AddLocalizedString(
+ "controlledSettingExtension",
+ IDS_SETTINGS_CONTROLLED_SETTING_NAMED_EXTENSION);
+#if defined(OS_CHROMEOS)
+ html_source->AddLocalizedString("controlledSettingShared",
+ IDS_OPTIONS_CONTROLLED_SETTING_SHARED);
+ html_source->AddLocalizedString("controlledSettingOwner",
+ IDS_OPTIONS_CONTROLLED_SETTING_OWNER);
+#endif
+}
+
+} // namespace policy_indicator

Powered by Google App Engine
This is Rietveld 408576698