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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 2383733003: Revert "Revert "Revert "[ARC] Add "(beta)" string to Play Store.""" (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/options/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 { "accessibilitySwitchAccess", 436 { "accessibilitySwitchAccess",
437 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SWITCH_ACCESS_DESCRIPTION }, 437 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SWITCH_ACCESS_DESCRIPTION },
438 { "accessibilityTalkBackSettings", 438 { "accessibilityTalkBackSettings",
439 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_TALKBACK_SETTINGS }, 439 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_TALKBACK_SETTINGS },
440 { "accessibilityTapDragging", 440 { "accessibilityTapDragging",
441 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_TOUCHPAD_TAP_DRAGGING_DESCRIPTION }, 441 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_TOUCHPAD_TAP_DRAGGING_DESCRIPTION },
442 { "accessibilityVirtualKeyboard", 442 { "accessibilityVirtualKeyboard",
443 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_VIRTUAL_KEYBOARD_DESCRIPTION }, 443 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_VIRTUAL_KEYBOARD_DESCRIPTION },
444 { "accessibilityMonoAudio", 444 { "accessibilityMonoAudio",
445 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_MONO_AUDIO_DESCRIPTION}, 445 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_MONO_AUDIO_DESCRIPTION},
446 { "androidAppsTitle", IDS_OPTIONS_ARC_TITLE },
446 { "androidAppsEnabled", IDS_OPTIONS_ARC_ENABLE }, 447 { "androidAppsEnabled", IDS_OPTIONS_ARC_ENABLE },
447 { "androidAppsSettingsLabel", IDS_OPTIONS_ARC_MANAGE_APPS }, 448 { "androidAppsSettingsLabel", IDS_OPTIONS_ARC_MANAGE_APPS },
448 { "arcOptOutConfirmOverlayTabTitle", IDS_ARC_OPT_OUT_TAB_TITLE }, 449 { "arcOptOutConfirmOverlayTabTitle", IDS_ARC_OPT_OUT_TAB_TITLE },
449 { "arcOptOutDialogHeader", IDS_ARC_OPT_OUT_DIALOG_HEADER }, 450 { "arcOptOutDialogHeader", IDS_ARC_OPT_OUT_DIALOG_HEADER },
450 { "arcOptOutDialogDescription", IDS_ARC_OPT_OUT_DIALOG_DESCRIPTION }, 451 { "arcOptOutDialogDescription", IDS_ARC_OPT_OUT_DIALOG_DESCRIPTION },
451 { "arcOptOutDialogButtonConfirmDisable", 452 { "arcOptOutDialogButtonConfirmDisable",
452 IDS_ARC_OPT_OUT_DIALOG_BUTTON_CONFIRM_DISABLE }, 453 IDS_ARC_OPT_OUT_DIALOG_BUTTON_CONFIRM_DISABLE },
453 { "arcOptOutDialogButtonCancel", IDS_ARC_OPT_OUT_DIALOG_BUTTON_CANCEL }, 454 { "arcOptOutDialogButtonCancel", IDS_ARC_OPT_OUT_DIALOG_BUTTON_CANCEL },
454 { "autoclickDelayExtremelyShort", 455 { "autoclickDelayExtremelyShort",
455 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DELAY_EXTREMELY_SHORT }, 456 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DELAY_EXTREMELY_SHORT },
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 566
566 RegisterStrings(values, resources, arraysize(resources)); 567 RegisterStrings(values, resources, arraysize(resources));
567 RegisterTitle(values, "doNotTrackConfirmOverlay", 568 RegisterTitle(values, "doNotTrackConfirmOverlay",
568 IDS_OPTIONS_ENABLE_DO_NOT_TRACK_BUBBLE_TITLE); 569 IDS_OPTIONS_ENABLE_DO_NOT_TRACK_BUBBLE_TITLE);
569 RegisterTitle(values, "spellingConfirmOverlay", 570 RegisterTitle(values, "spellingConfirmOverlay",
570 IDS_CONTENT_CONTEXT_SPELLING_ASK_GOOGLE); 571 IDS_CONTENT_CONTEXT_SPELLING_ASK_GOOGLE);
571 #if defined(ENABLE_PRINT_PREVIEW) 572 #if defined(ENABLE_PRINT_PREVIEW)
572 RegisterCloudPrintValues(values); 573 RegisterCloudPrintValues(values);
573 #endif 574 #endif
574 575
575 // TODO(xdai): Revert this after it's merged to M53.
576 #if defined(OS_CHROMEOS)
577 std::string android_apps_title =
578 l10n_util::GetStringUTF8(IDS_OPTIONS_ARC_TITLE) + " (" +
579 l10n_util::GetStringUTF8(IDS_ABOUT_PAGE_CURRENT_CHANNEL_BETA) + ")";
580 values->SetString("androidAppsTitle", android_apps_title);
581 #endif
582
583 values->SetString("syncLearnMoreURL", chrome::kSyncLearnMoreURL); 576 values->SetString("syncLearnMoreURL", chrome::kSyncLearnMoreURL);
584 base::string16 omnibox_url = base::ASCIIToUTF16(chrome::kOmniboxLearnMoreURL); 577 base::string16 omnibox_url = base::ASCIIToUTF16(chrome::kOmniboxLearnMoreURL);
585 values->SetString( 578 values->SetString(
586 "defaultSearchGroupLabel", 579 "defaultSearchGroupLabel",
587 l10n_util::GetStringFUTF16(IDS_SEARCH_PREF_EXPLANATION, omnibox_url)); 580 l10n_util::GetStringFUTF16(IDS_SEARCH_PREF_EXPLANATION, omnibox_url));
588 values->SetString("hotwordLearnMoreURL", chrome::kHotwordLearnMoreURL); 581 values->SetString("hotwordLearnMoreURL", chrome::kHotwordLearnMoreURL);
589 RegisterTitle(values, "hotwordConfirmOverlay", 582 RegisterTitle(values, "hotwordConfirmOverlay",
590 IDS_HOTWORD_CONFIRM_BUBBLE_TITLE); 583 IDS_HOTWORD_CONFIRM_BUBBLE_TITLE);
591 values->SetString("hotwordManageAudioHistoryURL", 584 values->SetString("hotwordManageAudioHistoryURL",
592 chrome::kManageAudioHistoryURL); 585 chrome::kManageAudioHistoryURL);
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 2234
2242 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { 2235 bool BrowserOptionsHandler::IsDeviceOwnerProfile() {
2243 #if defined(OS_CHROMEOS) 2236 #if defined(OS_CHROMEOS)
2244 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); 2237 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui()));
2245 #else 2238 #else
2246 return true; 2239 return true;
2247 #endif 2240 #endif
2248 } 2241 }
2249 2242
2250 } // namespace options 2243 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698