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

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

Issue 1573333002: [Media Router] Add remaining First Run Flow strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/app/media_router_strings.grdp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 IDS_MEDIA_ROUTER_LEARN_MORE_BUTTON); 35 IDS_MEDIA_ROUTER_LEARN_MORE_BUTTON);
36 } 36 }
37 37
38 void AddMediaRouterContainerStrings(content::WebUIDataSource* html_source) { 38 void AddMediaRouterContainerStrings(content::WebUIDataSource* html_source) {
39 html_source->AddLocalizedString("firstRunFlowButton", 39 html_source->AddLocalizedString("firstRunFlowButton",
40 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_BUTTON); 40 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_BUTTON);
41 html_source->AddLocalizedString("firstRunFlowText", 41 html_source->AddLocalizedString("firstRunFlowText",
42 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TEXT); 42 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TEXT);
43 html_source->AddLocalizedString("firstRunFlowTitle", 43 html_source->AddLocalizedString("firstRunFlowTitle",
44 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TITLE); 44 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_TITLE);
45 #if defined(GOOGLE_CHROME_BUILD)
46 html_source->AddLocalizedString("firstRunFlowCloudLearnMore",
47 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_CLOUD_LEARN_MORE);
48 html_source->AddLocalizedString("firstRunFlowCloudOptInText",
49 IDS_MEDIA_ROUTER_FIRST_RUN_FLOW_CLOUD_OPT_IN_TEXT);
50 #endif // defined(GOOGLE_CHROME_BUILD)
45 html_source->AddLocalizedString("autoCastMode", 51 html_source->AddLocalizedString("autoCastMode",
46 IDS_MEDIA_ROUTER_AUTO_CAST_MODE); 52 IDS_MEDIA_ROUTER_AUTO_CAST_MODE);
47 html_source->AddLocalizedString("deviceMissing", 53 html_source->AddLocalizedString("deviceMissing",
48 IDS_MEDIA_ROUTER_DEVICE_MISSING); 54 IDS_MEDIA_ROUTER_DEVICE_MISSING);
49 html_source->AddLocalizedString("selectCastModeHeader", 55 html_source->AddLocalizedString("selectCastModeHeader",
50 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER); 56 IDS_MEDIA_ROUTER_SELECT_CAST_MODE_HEADER);
51 html_source->AddLocalizedString("shareYourScreenSubheading", 57 html_source->AddLocalizedString("shareYourScreenSubheading",
52 IDS_MEDIA_ROUTER_SHARE_YOUR_SCREEN_SUBHEADING); 58 IDS_MEDIA_ROUTER_SHARE_YOUR_SCREEN_SUBHEADING);
53 } 59 }
54 60
55 } // namespace 61 } // namespace
56 62
57 namespace media_router { 63 namespace media_router {
58 64
59 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 65 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
60 AddMediaRouterStrings(html_source); 66 AddMediaRouterStrings(html_source);
61 AddRouteDetailsStrings(html_source); 67 AddRouteDetailsStrings(html_source);
62 AddIssuesStrings(html_source); 68 AddIssuesStrings(html_source);
63 AddMediaRouterContainerStrings(html_source); 69 AddMediaRouterContainerStrings(html_source);
64 html_source->SetJsonPath(kLocalizedStringsFile); 70 html_source->SetJsonPath(kLocalizedStringsFile);
65 } 71 }
66 72
67 } // namespace media_router 73 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/app/media_router_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698