| 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/dom_ui/options/advanced_options_handler.h" | 5 #include "chrome/browser/dom_ui/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/callback.h" | 10 #include "base/callback.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 #endif | 177 #endif |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 RegisterStrings(localized_strings, resources, arraysize(resources)); | 180 RegisterStrings(localized_strings, resources, arraysize(resources)); |
| 181 RegisterTitle(localized_strings, "advancedPage", | 181 RegisterTitle(localized_strings, "advancedPage", |
| 182 IDS_OPTIONS_ADVANCED_TAB_LABEL); | 182 IDS_OPTIONS_ADVANCED_TAB_LABEL); |
| 183 | 183 |
| 184 localized_strings->SetString("privacyLearnMoreURL", | 184 localized_strings->SetString("privacyLearnMoreURL", |
| 185 google_util::AppendGoogleLocaleParam( | 185 google_util::AppendGoogleLocaleParam( |
| 186 GURL(chrome::kPrivacyLearnMoreURL)).spec()); | 186 GURL(chrome::kPrivacyLearnMoreURL)).spec()); |
| 187 #if !defined(OS_CHROMEOS) | |
| 188 // Add the cloud print proxy management ui section if it's been runtime | |
| 189 // enabled. | |
| 190 localized_strings->SetBoolean("enable-cloud-print-proxy", | |
| 191 cloud_print_proxy_ui_enabled_); | |
| 192 #endif | |
| 193 } | 187 } |
| 194 | 188 |
| 195 void AdvancedOptionsHandler::Initialize() { | 189 void AdvancedOptionsHandler::Initialize() { |
| 196 DCHECK(web_ui_); | 190 DCHECK(web_ui_); |
| 197 SetupMetricsReportingCheckbox(); | 191 SetupMetricsReportingCheckbox(); |
| 198 SetupMetricsReportingSettingVisibility(); | 192 SetupMetricsReportingSettingVisibility(); |
| 199 SetupFontSizeLabel(); | 193 SetupFontSizeLabel(); |
| 200 SetupDownloadLocationPath(); | 194 SetupDownloadLocationPath(); |
| 201 SetupPromptForDownload(); | 195 SetupPromptForDownload(); |
| 202 SetupAutoOpenFileTypesDisabledAttribute(); | 196 SetupAutoOpenFileTypesDisabledAttribute(); |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 FundamentalValue useSSL3Value(useSSL3Setting); | 650 FundamentalValue useSSL3Value(useSSL3Setting); |
| 657 web_ui_->CallJavascriptFunction( | 651 web_ui_->CallJavascriptFunction( |
| 658 L"options.AdvancedOptions.SetUseSSL3CheckboxState", | 652 L"options.AdvancedOptions.SetUseSSL3CheckboxState", |
| 659 useSSL3Value, disabledValue); | 653 useSSL3Value, disabledValue); |
| 660 FundamentalValue useTLS1Value(useTLS1Setting); | 654 FundamentalValue useTLS1Value(useTLS1Setting); |
| 661 web_ui_->CallJavascriptFunction( | 655 web_ui_->CallJavascriptFunction( |
| 662 L"options.AdvancedOptions.SetUseTLS1CheckboxState", | 656 L"options.AdvancedOptions.SetUseTLS1CheckboxState", |
| 663 useTLS1Value, disabledValue); | 657 useTLS1Value, disabledValue); |
| 664 } | 658 } |
| 665 #endif | 659 #endif |
| OLD | NEW |