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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2895943003: MD Settings: add missing Mac-only "tab to links" pref (Closed)
Patch Set: Created 3 years, 7 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/browser/resources/settings/appearance_page/appearance_page.html ('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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, 346 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE},
347 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, 347 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL},
348 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, 348 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE},
349 #if defined(OS_CHROMEOS) 349 #if defined(OS_CHROMEOS)
350 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, 350 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP},
351 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, 351 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER},
352 #endif 352 #endif
353 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 353 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
354 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, 354 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS},
355 #endif 355 #endif
356 #if defined(OS_MACOSX)
357 // TODO(dbeam): use an IDS_SETTINGS_* string instead.
358 {"tabsToLinks", IDS_OPTIONS_TABS_TO_LINKS_PREF},
359 #endif
356 }; 360 };
357 AddLocalizedStringsBulk(html_source, localized_strings, 361 AddLocalizedStringsBulk(html_source, localized_strings,
358 arraysize(localized_strings)); 362 arraysize(localized_strings));
359 363
360 html_source->AddBoolean("isSupervised", profile->IsSupervised()); 364 html_source->AddBoolean("isSupervised", profile->IsSupervised());
361 } 365 }
362 366
363 #if defined(OS_CHROMEOS) 367 #if defined(OS_CHROMEOS)
364 void AddBluetoothStrings(content::WebUIDataSource* html_source) { 368 void AddBluetoothStrings(content::WebUIDataSource* html_source) {
365 LocalizedString localized_strings[] = { 369 LocalizedString localized_strings[] = {
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 2046
2043 #if defined(OS_CHROMEOS) 2047 #if defined(OS_CHROMEOS)
2044 chromeos::network_element::AddLocalizedStrings(html_source); 2048 chromeos::network_element::AddLocalizedStrings(html_source);
2045 #endif 2049 #endif
2046 policy_indicator::AddLocalizedStrings(html_source); 2050 policy_indicator::AddLocalizedStrings(html_source);
2047 2051
2048 html_source->SetJsonPath(kLocalizedStringsFile); 2052 html_source->SetJsonPath(kLocalizedStringsFile);
2049 } 2053 }
2050 2054
2051 } // namespace settings 2055 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698