| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
| 18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/value_conversions.h" | 21 #include "base/value_conversions.h" |
| 22 #include "base/values.h" | 22 #include "base/values.h" |
| 23 #include "chrome/browser/auto_launch_trial.h" | 23 #include "chrome/browser/auto_launch_trial.h" |
| 24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/chrome_notification_types.h" |
| 25 #include "chrome/browser/chrome_page_zoom.h" | 26 #include "chrome/browser/chrome_page_zoom.h" |
| 26 #include "chrome/browser/custom_home_pages_table_model.h" | 27 #include "chrome/browser/custom_home_pages_table_model.h" |
| 27 #include "chrome/browser/download/download_prefs.h" | 28 #include "chrome/browser/download/download_prefs.h" |
| 28 #include "chrome/browser/gpu/gpu_mode_manager.h" | 29 #include "chrome/browser/gpu/gpu_mode_manager.h" |
| 29 #include "chrome/browser/lifetime/application_lifetime.h" | 30 #include "chrome/browser/lifetime/application_lifetime.h" |
| 30 #include "chrome/browser/net/url_fixer_upper.h" | 31 #include "chrome/browser/net/url_fixer_upper.h" |
| 31 #include "chrome/browser/prefs/session_startup_pref.h" | 32 #include "chrome/browser/prefs/session_startup_pref.h" |
| 32 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" | 33 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" |
| 33 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" | 34 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory.
h" |
| 34 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" | 35 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 48 #include "chrome/browser/sync/profile_sync_service_factory.h" | 49 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 49 #include "chrome/browser/sync/sync_ui_util.h" | 50 #include "chrome/browser/sync/sync_ui_util.h" |
| 50 #include "chrome/browser/themes/theme_service.h" | 51 #include "chrome/browser/themes/theme_service.h" |
| 51 #include "chrome/browser/themes/theme_service_factory.h" | 52 #include "chrome/browser/themes/theme_service_factory.h" |
| 52 #include "chrome/browser/ui/browser_finder.h" | 53 #include "chrome/browser/ui/browser_finder.h" |
| 53 #include "chrome/browser/ui/chrome_select_file_policy.h" | 54 #include "chrome/browser/ui/chrome_select_file_policy.h" |
| 54 #include "chrome/browser/ui/host_desktop.h" | 55 #include "chrome/browser/ui/host_desktop.h" |
| 55 #include "chrome/browser/ui/options/options_util.h" | 56 #include "chrome/browser/ui/options/options_util.h" |
| 56 #include "chrome/browser/ui/webui/favicon_source.h" | 57 #include "chrome/browser/ui/webui/favicon_source.h" |
| 57 #include "chrome/common/chrome_constants.h" | 58 #include "chrome/common/chrome_constants.h" |
| 58 #include "chrome/common/chrome_notification_types.h" | |
| 59 #include "chrome/common/chrome_paths.h" | 59 #include "chrome/common/chrome_paths.h" |
| 60 #include "chrome/common/chrome_switches.h" | 60 #include "chrome/common/chrome_switches.h" |
| 61 #include "chrome/common/pref_names.h" | 61 #include "chrome/common/pref_names.h" |
| 62 #include "chrome/common/url_constants.h" | 62 #include "chrome/common/url_constants.h" |
| 63 #include "content/public/browser/browser_thread.h" | 63 #include "content/public/browser/browser_thread.h" |
| 64 #include "content/public/browser/download_manager.h" | 64 #include "content/public/browser/download_manager.h" |
| 65 #include "content/public/browser/navigation_controller.h" | 65 #include "content/public/browser/navigation_controller.h" |
| 66 #include "content/public/browser/notification_details.h" | 66 #include "content/public/browser/notification_details.h" |
| 67 #include "content/public/browser/notification_service.h" | 67 #include "content/public/browser/notification_service.h" |
| 68 #include "content/public/browser/notification_source.h" | 68 #include "content/public/browser/notification_source.h" |
| (...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1719 base::FundamentalValue disabled(proxy_config && | 1719 base::FundamentalValue disabled(proxy_config && |
| 1720 !proxy_config->IsUserModifiable()); | 1720 !proxy_config->IsUserModifiable()); |
| 1721 base::FundamentalValue extension_controlled(is_extension_controlled); | 1721 base::FundamentalValue extension_controlled(is_extension_controlled); |
| 1722 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection", | 1722 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection", |
| 1723 disabled, extension_controlled); | 1723 disabled, extension_controlled); |
| 1724 | 1724 |
| 1725 #endif // !defined(OS_CHROMEOS) | 1725 #endif // !defined(OS_CHROMEOS) |
| 1726 } | 1726 } |
| 1727 | 1727 |
| 1728 } // namespace options | 1728 } // namespace options |
| OLD | NEW |