Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / ui / webui / media_router / media_router_localized_strings_provider.cc
blobd8693b3e9424819b6984eae7c86c28c19b81d87b
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/webui/media_router/media_router_localized_strings_provider.h"
7 #include "chrome/grit/generated_resources.h"
8 #include "content/public/browser/web_ui_data_source.h"
10 namespace {
12 // Note that media_router.html contains a <script> tag which imports a script
13 // of the following name. These names must be kept in sync.
14 const char kLocalizedStringsFile[] = "strings.js";
16 void AddMediaRouterStrings(content::WebUIDataSource* html_source) {
17 html_source->AddLocalizedString("mediaRouterTitle", IDS_MEDIA_ROUTER_TITLE);
20 void AddRouteDetailsStrings(content::WebUIDataSource* html_source) {
21 html_source->AddLocalizedString("backToSinkPicker",
22 IDS_MEDIA_ROUTER_BACK_TO_SINK_PICKER);
23 html_source->AddLocalizedString("castingActivityStatus",
24 IDS_MEDIA_ROUTER_CASTING_ACTIVITY_STATUS);
25 html_source->AddLocalizedString("selectCastModeHeader",
26 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER);
27 html_source->AddLocalizedString("stopCastingButton",
28 IDS_MEDIA_ROUTER_STOP_CASTING_BUTTON);
31 } // namespace
33 namespace media_router {
35 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
36 AddMediaRouterStrings(html_source);
37 AddRouteDetailsStrings(html_source);
38 html_source->SetJsonPath(kLocalizedStringsFile);
41 } // namespace media_router