| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/advanced_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/advanced_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 { "networkPredictionEnabledDescription", | 103 { "networkPredictionEnabledDescription", |
| 104 IDS_NETWORK_PREDICTION_ENABLED_DESCRIPTION }, | 104 IDS_NETWORK_PREDICTION_ENABLED_DESCRIPTION }, |
| 105 { "privacyContentSettingsButton", | 105 { "privacyContentSettingsButton", |
| 106 IDS_OPTIONS_PRIVACY_CONTENT_SETTINGS_BUTTON }, | 106 IDS_OPTIONS_PRIVACY_CONTENT_SETTINGS_BUTTON }, |
| 107 { "privacyClearDataButton", | 107 { "privacyClearDataButton", |
| 108 IDS_OPTIONS_PRIVACY_CLEAR_DATA_BUTTON }, | 108 IDS_OPTIONS_PRIVACY_CLEAR_DATA_BUTTON }, |
| 109 { "linkDoctorPref", | 109 { "linkDoctorPref", |
| 110 IDS_OPTIONS_LINKDOCTOR_PREF }, | 110 IDS_OPTIONS_LINKDOCTOR_PREF }, |
| 111 { "suggestPref", | 111 { "suggestPref", |
| 112 IDS_OPTIONS_SUGGEST_PREF }, | 112 IDS_OPTIONS_SUGGEST_PREF }, |
| 113 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN) |
| 114 { "spellingPref", |
| 115 IDS_OPTIONS_SPELLING_PREF }, |
| 116 #endif |
| 113 { "tabsToLinksPref", | 117 { "tabsToLinksPref", |
| 114 IDS_OPTIONS_TABS_TO_LINKS_PREF }, | 118 IDS_OPTIONS_TABS_TO_LINKS_PREF }, |
| 115 { "fontSettingsInfo", | 119 { "fontSettingsInfo", |
| 116 IDS_OPTIONS_FONTSETTINGS_INFO }, | 120 IDS_OPTIONS_FONTSETTINGS_INFO }, |
| 117 { "defaultZoomLevelLabel", | 121 { "defaultZoomLevelLabel", |
| 118 IDS_OPTIONS_DEFAULT_ZOOM_LEVEL_LABEL }, | 122 IDS_OPTIONS_DEFAULT_ZOOM_LEVEL_LABEL }, |
| 119 { "defaultFontSizeLabel", | 123 { "defaultFontSizeLabel", |
| 120 IDS_OPTIONS_DEFAULT_FONT_SIZE_LABEL }, | 124 IDS_OPTIONS_DEFAULT_FONT_SIZE_LABEL }, |
| 121 { "fontSizeLabelVerySmall", | 125 { "fontSizeLabelVerySmall", |
| 122 IDS_OPTIONS_FONT_SIZE_LABEL_VERY_SMALL }, | 126 IDS_OPTIONS_FONT_SIZE_LABEL_VERY_SMALL }, |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 584 |
| 581 void AdvancedOptionsHandler::SetupSSLConfigSettings() { | 585 void AdvancedOptionsHandler::SetupSSLConfigSettings() { |
| 582 { | 586 { |
| 583 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); | 587 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); |
| 584 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); | 588 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); |
| 585 web_ui_->CallJavascriptFunction( | 589 web_ui_->CallJavascriptFunction( |
| 586 "options.AdvancedOptions.SetCheckRevocationCheckboxState", checked, | 590 "options.AdvancedOptions.SetCheckRevocationCheckboxState", checked, |
| 587 disabled); | 591 disabled); |
| 588 } | 592 } |
| 589 } | 593 } |
| OLD | NEW |