| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/advanced_options_handler.h" | 5 #include "chrome/browser/dom_ui/advanced_options_handler.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/browser/dom_ui/options_managed_banner_handler.h" | 12 #include "chrome/browser/dom_ui/options_managed_banner_handler.h" |
| 13 #include "chrome/browser/download/download_manager.h" | 13 #include "chrome/browser/download/download_manager.h" |
| 14 #include "chrome/browser/metrics/user_metrics.h" | 14 #include "chrome/browser/metrics/user_metrics.h" |
| 15 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/options_window.h" |
| 16 #include "chrome/browser/prefs/pref_service.h" |
| 16 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
| 17 #include "chrome/browser/options_window.h" | |
| 18 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
| 19 #include "chrome/browser/tab_contents/tab_contents_view.h" | 19 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 20 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
| 21 #include "chrome/common/notification_type.h" | 21 #include "chrome/common/notification_type.h" |
| 22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 23 #include "grit/chromium_strings.h" | 23 #include "grit/chromium_strings.h" |
| 24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
| 25 #include "grit/locale_settings.h" | 25 #include "grit/locale_settings.h" |
| 26 | 26 |
| 27 #if !defined(OS_CHROMEOS) | 27 #if !defined(OS_CHROMEOS) |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 330 } |
| 331 FundamentalValue checkRevocationValue(checkRevocationSetting); | 331 FundamentalValue checkRevocationValue(checkRevocationSetting); |
| 332 dom_ui_->CallJavascriptFunction( | 332 dom_ui_->CallJavascriptFunction( |
| 333 L"options.AdvancedOptions.SetCheckRevocationCheckboxState", | 333 L"options.AdvancedOptions.SetCheckRevocationCheckboxState", |
| 334 checkRevocationValue); | 334 checkRevocationValue); |
| 335 FundamentalValue useSSLValue(useSSLSetting); | 335 FundamentalValue useSSLValue(useSSLSetting); |
| 336 dom_ui_->CallJavascriptFunction( | 336 dom_ui_->CallJavascriptFunction( |
| 337 L"options.AdvancedOptions.SetUseSSL2CheckboxStatechecked", useSSLValue); | 337 L"options.AdvancedOptions.SetUseSSL2CheckboxStatechecked", useSSLValue); |
| 338 } | 338 } |
| 339 #endif | 339 #endif |
| OLD | NEW |