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/prefs/prefs_tab_helper.h" | 5 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
17 #include "base/prefs/overlay_user_pref_store.h" | |
18 #include "base/prefs/pref_change_registrar.h" | |
19 #include "base/prefs/pref_service.h" | |
20 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
21 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
22 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
23 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
24 #include "build/build_config.h" | 21 #include "build/build_config.h" |
25 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
26 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" |
27 #include "chrome/browser/profiles/incognito_helpers.h" | 24 #include "chrome/browser/profiles/incognito_helpers.h" |
28 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
29 #include "chrome/browser/renderer_preferences_util.h" | 26 #include "chrome/browser/renderer_preferences_util.h" |
30 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 27 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
31 #include "chrome/common/pref_font_webkit_names.h" | 28 #include "chrome/common/pref_font_webkit_names.h" |
32 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
33 #include "chrome/common/pref_names_util.h" | 30 #include "chrome/common/pref_names_util.h" |
34 #include "chrome/grit/locale_settings.h" | 31 #include "chrome/grit/locale_settings.h" |
35 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 32 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
36 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 33 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
37 #include "components/keyed_service/core/keyed_service.h" | 34 #include "components/keyed_service/core/keyed_service.h" |
38 #include "components/pref_registry/pref_registry_syncable.h" | 35 #include "components/pref_registry/pref_registry_syncable.h" |
| 36 #include "components/prefs/overlay_user_pref_store.h" |
| 37 #include "components/prefs/pref_change_registrar.h" |
| 38 #include "components/prefs/pref_service.h" |
39 #include "components/proxy_config/proxy_config_pref_names.h" | 39 #include "components/proxy_config/proxy_config_pref_names.h" |
40 #include "content/public/browser/notification_details.h" | 40 #include "content/public/browser/notification_details.h" |
41 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
42 #include "content/public/browser/render_view_host.h" | 42 #include "content/public/browser/render_view_host.h" |
43 #include "content/public/browser/web_contents.h" | 43 #include "content/public/browser/web_contents.h" |
44 #include "content/public/common/renderer_preferences.h" | 44 #include "content/public/common/renderer_preferences.h" |
45 #include "content/public/common/web_preferences.h" | 45 #include "content/public/common/web_preferences.h" |
46 #include "grit/platform_locale_settings.h" | 46 #include "grit/platform_locale_settings.h" |
47 #include "third_party/icu/source/common/unicode/uchar.h" | 47 #include "third_party/icu/source/common/unicode/uchar.h" |
48 #include "third_party/icu/source/common/unicode/uscript.h" | 48 #include "third_party/icu/source/common/unicode/uscript.h" |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 } | 685 } |
686 } | 686 } |
687 | 687 |
688 void PrefsTabHelper::OnWebPrefChanged(const std::string& pref_name) { | 688 void PrefsTabHelper::OnWebPrefChanged(const std::string& pref_name) { |
689 #if !defined(OS_ANDROID) | 689 #if !defined(OS_ANDROID) |
690 OnFontFamilyPrefChanged(pref_name); | 690 OnFontFamilyPrefChanged(pref_name); |
691 #endif | 691 #endif |
692 | 692 |
693 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); | 693 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); |
694 } | 694 } |
OLD | NEW |