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

Side by Side Diff: chrome/browser/ui/webui/media_router/media_router_localized_strings_provider.cc

Issue 2451573003: [Media Router] Update Media Router flags post-launch. (Closed)
Patch Set: Rebase & respond to apacible@ comments. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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/media_router/media_router_localized_strings_pr ovider.h" 5 #include "chrome/browser/ui/webui/media_router/media_router_localized_strings_pr ovider.h"
6 6
7 #include "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "content/public/browser/web_ui_data_source.h" 8 #include "content/public/browser/web_ui_data_source.h"
9 9
10 namespace { 10 namespace {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 IDS_MEDIA_ROUTER_ISSUE_HEADER); 45 IDS_MEDIA_ROUTER_ISSUE_HEADER);
46 } 46 }
47 47
48 void AddMediaRouterContainerStrings(content::WebUIDataSource* html_source) { 48 void AddMediaRouterContainerStrings(content::WebUIDataSource* html_source) {
49 html_source->AddLocalizedString("firstRunFlowButtonText", 49 html_source->AddLocalizedString("firstRunFlowButtonText",
50 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_BUTTON); 50 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_BUTTON);
51 html_source->AddLocalizedString("firstRunFlowText", 51 html_source->AddLocalizedString("firstRunFlowText",
52 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TEXT); 52 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TEXT);
53 html_source->AddLocalizedString("firstRunFlowTitle", 53 html_source->AddLocalizedString("firstRunFlowTitle",
54 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TITLE); 54 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TITLE);
55 #if defined(GOOGLE_CHROME_BUILD)
56 html_source->AddLocalizedString("firstRunFlowCloudPrefText", 55 html_source->AddLocalizedString("firstRunFlowCloudPrefText",
57 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_CLOUD_PREF_TEXT); 56 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_CLOUD_PREF_TEXT);
58 #endif // defined(GOOGLE_CHROME_BUILD)
59 html_source->AddLocalizedString("autoCastMode", 57 html_source->AddLocalizedString("autoCastMode",
60 IDS_MEDIA_ROUTER_AUTO_CAST_MODE); 58 IDS_MEDIA_ROUTER_AUTO_CAST_MODE);
61 html_source->AddLocalizedString("destinationMissingText", 59 html_source->AddLocalizedString("destinationMissingText",
62 IDS_MEDIA_ROUTER_DESTINATION_MISSING); 60 IDS_MEDIA_ROUTER_DESTINATION_MISSING);
63 html_source->AddLocalizedString("searchInputLabel", 61 html_source->AddLocalizedString("searchInputLabel",
64 IDS_MEDIA_ROUTER_SEARCH_LABEL); 62 IDS_MEDIA_ROUTER_SEARCH_LABEL);
65 html_source->AddLocalizedString("searchNoMatchesText", 63 html_source->AddLocalizedString("searchNoMatchesText",
66 IDS_MEDIA_ROUTER_SEARCH_NO_MATCHES); 64 IDS_MEDIA_ROUTER_SEARCH_NO_MATCHES);
67 html_source->AddLocalizedString("selectCastModeHeaderText", 65 html_source->AddLocalizedString("selectCastModeHeaderText",
68 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER); 66 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER);
69 html_source->AddLocalizedString("shareYourScreenSubheadingText", 67 html_source->AddLocalizedString("shareYourScreenSubheadingText",
70 IDS_MEDIA_ROUTER_SHARE_YOUR_SCREEN_SUBHEADING); 68 IDS_MEDIA_ROUTER_SHARE_YOUR_SCREEN_SUBHEADING);
71 } 69 }
72 70
73 } // namespace 71 } // namespace
74 72
75 namespace media_router { 73 namespace media_router {
76 74
77 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 75 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
78 AddMediaRouterStrings(html_source); 76 AddMediaRouterStrings(html_source);
79 AddRouteDetailsStrings(html_source); 77 AddRouteDetailsStrings(html_source);
80 AddIssuesStrings(html_source); 78 AddIssuesStrings(html_source);
81 AddMediaRouterContainerStrings(html_source); 79 AddMediaRouterContainerStrings(html_source);
82 html_source->SetJsonPath(kLocalizedStringsFile); 80 html_source->SetJsonPath(kLocalizedStringsFile);
83 } 81 }
84 82
85 } // namespace media_router 83 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698