OLD | NEW |
---|---|
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 <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
494 { "factoryResetDescription", IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, | 494 { "factoryResetDescription", IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, |
495 IDS_SHORT_PRODUCT_NAME }, | 495 IDS_SHORT_PRODUCT_NAME }, |
496 #endif | 496 #endif |
497 { "languageSectionLabel", IDS_OPTIONS_ADVANCED_LANGUAGE_LABEL, | 497 { "languageSectionLabel", IDS_OPTIONS_ADVANCED_LANGUAGE_LABEL, |
498 IDS_SHORT_PRODUCT_NAME }, | 498 IDS_SHORT_PRODUCT_NAME }, |
499 #if defined(ENABLE_SERVICE_DISCOVERY) | 499 #if defined(ENABLE_SERVICE_DISCOVERY) |
500 { "cloudPrintDevicesPageButton", IDS_LOCAL_DISCOVERY_DEVICES_PAGE_BUTTON }, | 500 { "cloudPrintDevicesPageButton", IDS_LOCAL_DISCOVERY_DEVICES_PAGE_BUTTON }, |
501 { "cloudPrintEnableNotificationsLabel", | 501 { "cloudPrintEnableNotificationsLabel", |
502 IDS_LOCAL_DISCOVERY_NOTIFICATIONS_ENABLE_CHECKBOX_LABEL }, | 502 IDS_LOCAL_DISCOVERY_NOTIFICATIONS_ENABLE_CHECKBOX_LABEL }, |
503 #endif | 503 #endif |
504 #if defined(OS_CHROMEOS) | |
505 { "captivePortalBypassProxy", | |
506 IDS_OPTIONS_CAPTIVE_PORTAL_BYPASS_PROXY_LABEL }, | |
507 #endif | |
504 }; | 508 }; |
505 | 509 |
506 #if defined(ENABLE_SETTINGS_APP) | 510 #if defined(ENABLE_SETTINGS_APP) |
507 static OptionsStringResource app_resources[] = { | 511 static OptionsStringResource app_resources[] = { |
508 { "syncOverview", IDS_SETTINGS_APP_SYNC_OVERVIEW }, | 512 { "syncOverview", IDS_SETTINGS_APP_SYNC_OVERVIEW }, |
509 { "syncButtonTextStart", IDS_SYNC_START_SYNC_BUTTON_LABEL, | 513 { "syncButtonTextStart", IDS_SYNC_START_SYNC_BUTTON_LABEL, |
510 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, | 514 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, |
511 { "profilesSingleUser", IDS_PROFILES_SINGLE_USER_MESSAGE, | 515 { "profilesSingleUser", IDS_PROFILES_SINGLE_USER_MESSAGE, |
512 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, | 516 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, |
513 { "languageSectionLabel", IDS_OPTIONS_ADVANCED_LANGUAGE_LABEL, | 517 { "languageSectionLabel", IDS_OPTIONS_ADVANCED_LANGUAGE_LABEL, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
646 proximity_auth::switches::kEnableProximityDetection)); | 650 proximity_auth::switches::kEnableProximityDetection)); |
647 | 651 |
648 #if defined(OS_CHROMEOS) | 652 #if defined(OS_CHROMEOS) |
649 values->SetBoolean( | 653 values->SetBoolean( |
650 "consumerManagementEnabled", | 654 "consumerManagementEnabled", |
651 CommandLine::ForCurrentProcess()->HasSwitch( | 655 CommandLine::ForCurrentProcess()->HasSwitch( |
652 chromeos::switches::kEnableConsumerManagement)); | 656 chromeos::switches::kEnableConsumerManagement)); |
653 | 657 |
654 RegisterTitle(values, "thirdPartyImeConfirmOverlay", | 658 RegisterTitle(values, "thirdPartyImeConfirmOverlay", |
655 IDS_OPTIONS_SETTINGS_LANGUAGES_THIRD_PARTY_WARNING_TITLE); | 659 IDS_OPTIONS_SETTINGS_LANGUAGES_THIRD_PARTY_WARNING_TITLE); |
660 | |
661 values->SetBoolean("enableCaptivePortalBypassProxyOption", | |
662 base::CommandLine::ForCurrentProcess()->HasSwitch( | |
663 chromeos::switches::kEnableCaptivePortalBypassProxy)); | |
bartfab (slow)
2015/01/07 17:38:43
AFAICT, this switch does not actually enable bypas
Alexander Alekseev
2015/01/12 18:41:09
Done.
| |
656 #endif | 664 #endif |
657 | 665 |
658 values->SetBoolean("showSetDefault", ShouldShowSetDefaultBrowser()); | 666 values->SetBoolean("showSetDefault", ShouldShowSetDefaultBrowser()); |
659 | 667 |
660 values->SetBoolean("allowAdvancedSettings", ShouldAllowAdvancedSettings()); | 668 values->SetBoolean("allowAdvancedSettings", ShouldAllowAdvancedSettings()); |
661 | 669 |
662 values->SetBoolean("websiteSettingsManagerEnabled", | 670 values->SetBoolean("websiteSettingsManagerEnabled", |
663 CommandLine::ForCurrentProcess()->HasSwitch( | 671 CommandLine::ForCurrentProcess()->HasSwitch( |
664 switches::kEnableWebsiteSettingsManager)); | 672 switches::kEnableWebsiteSettingsManager)); |
665 | 673 |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2090 void BrowserOptionsHandler::OnPolicyUpdated(const policy::PolicyNamespace& ns, | 2098 void BrowserOptionsHandler::OnPolicyUpdated(const policy::PolicyNamespace& ns, |
2091 const policy::PolicyMap& previous, | 2099 const policy::PolicyMap& previous, |
2092 const policy::PolicyMap& current) { | 2100 const policy::PolicyMap& current) { |
2093 std::set<std::string> different_keys; | 2101 std::set<std::string> different_keys; |
2094 current.GetDifferingKeys(previous, &different_keys); | 2102 current.GetDifferingKeys(previous, &different_keys); |
2095 if (ContainsKey(different_keys, policy::key::kMetricsReportingEnabled)) | 2103 if (ContainsKey(different_keys, policy::key::kMetricsReportingEnabled)) |
2096 SetupMetricsReportingCheckbox(); | 2104 SetupMetricsReportingCheckbox(); |
2097 } | 2105 } |
2098 | 2106 |
2099 } // namespace options | 2107 } // namespace options |
OLD | NEW |