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/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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 l10n_util::GetStringFUTF16( | 212 l10n_util::GetStringFUTF16( |
213 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_DISABLED_BUTTON, | 213 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_DISABLED_BUTTON, |
214 l10n_util::GetStringUTF16(IDS_GOOGLE_CLOUD_PRINT))); | 214 l10n_util::GetStringUTF16(IDS_GOOGLE_CLOUD_PRINT))); |
215 localized_strings->SetString("cloudPrintConnectorEnabledButton", | 215 localized_strings->SetString("cloudPrintConnectorEnabledButton", |
216 l10n_util::GetStringFUTF16( | 216 l10n_util::GetStringFUTF16( |
217 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_ENABLED_BUTTON, | 217 IDS_OPTIONS_CLOUD_PRINT_CONNECTOR_ENABLED_BUTTON, |
218 l10n_util::GetStringUTF16(IDS_GOOGLE_CLOUD_PRINT))); | 218 l10n_util::GetStringUTF16(IDS_GOOGLE_CLOUD_PRINT))); |
219 #endif | 219 #endif |
220 } | 220 } |
221 | 221 |
222 void AdvancedOptionsHandler::Initialize() { | 222 void AdvancedOptionsHandler::InitializeHandler() { |
223 DCHECK(web_ui()); | 223 DCHECK(web_ui()); |
224 SetupMetricsReportingCheckbox(); | 224 SetupMetricsReportingCheckbox(); |
225 SetupMetricsReportingSettingVisibility(); | 225 SetupMetricsReportingSettingVisibility(); |
226 SetupFontSizeSelector(); | 226 SetupFontSizeSelector(); |
227 SetupPageZoomSelector(); | 227 SetupPageZoomSelector(); |
228 SetupAutoOpenFileTypesDisabledAttribute(); | 228 SetupAutoOpenFileTypesDisabledAttribute(); |
229 SetupProxySettingsSection(); | 229 SetupProxySettingsSection(); |
230 SetupSSLConfigSettings(); | 230 SetupSSLConfigSettings(); |
231 #if !defined(OS_CHROMEOS) | 231 #if !defined(OS_CHROMEOS) |
232 if (cloud_print_connector_ui_enabled_) { | 232 if (cloud_print_connector_ui_enabled_) { |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 | 650 |
651 void AdvancedOptionsHandler::SetupSSLConfigSettings() { | 651 void AdvancedOptionsHandler::SetupSSLConfigSettings() { |
652 { | 652 { |
653 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); | 653 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); |
654 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); | 654 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); |
655 web_ui()->CallJavascriptFunction( | 655 web_ui()->CallJavascriptFunction( |
656 "options.AdvancedOptions.SetCheckRevocationCheckboxState", checked, | 656 "options.AdvancedOptions.SetCheckRevocationCheckboxState", checked, |
657 disabled); | 657 disabled); |
658 } | 658 } |
659 } | 659 } |
OLD | NEW |