| 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/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" | 
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" | 
| 18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" | 
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" | 
| 20 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" | 
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" | 
| 22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" | 
| 23 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" | 
| 24 #include "chrome/browser/profiles/incognito_helpers.h" | 24 #include "chrome/browser/profiles/incognito_helpers.h" | 
| 25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" | 
| 26 #include "chrome/browser/renderer_preferences_util.h" | 26 #include "chrome/browser/renderer_preferences_util.h" | 
| 27 #include "chrome/common/pref_font_webkit_names.h" | 27 #include "chrome/common/pref_font_webkit_names.h" | 
| 28 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" | 
| 29 #include "chrome/common/pref_names_util.h" | 29 #include "chrome/common/pref_names_util.h" | 
| 30 #include "chrome/grit/locale_settings.h" |  | 
| 31 #include "chrome/grit/platform_locale_settings.h" | 30 #include "chrome/grit/platform_locale_settings.h" | 
| 32 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 31 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 
| 33 #include "components/keyed_service/content/browser_context_keyed_service_factory
     .h" | 32 #include "components/keyed_service/content/browser_context_keyed_service_factory
     .h" | 
| 34 #include "components/keyed_service/core/keyed_service.h" | 33 #include "components/keyed_service/core/keyed_service.h" | 
| 35 #include "components/pref_registry/pref_registry_syncable.h" | 34 #include "components/pref_registry/pref_registry_syncable.h" | 
| 36 #include "components/prefs/overlay_user_pref_store.h" | 35 #include "components/prefs/overlay_user_pref_store.h" | 
| 37 #include "components/prefs/pref_change_registrar.h" | 36 #include "components/prefs/pref_change_registrar.h" | 
| 38 #include "components/prefs/pref_service.h" | 37 #include "components/prefs/pref_service.h" | 
| 39 #include "components/proxy_config/proxy_config_pref_names.h" | 38 #include "components/proxy_config/proxy_config_pref_names.h" | 
| 40 #include "components/strings/grit/components_locale_settings.h" | 39 #include "components/strings/grit/components_locale_settings.h" | 
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 683 } | 682 } | 
| 684 | 683 | 
| 685 void PrefsTabHelper::NotifyWebkitPreferencesChanged( | 684 void PrefsTabHelper::NotifyWebkitPreferencesChanged( | 
| 686     const std::string& pref_name) { | 685     const std::string& pref_name) { | 
| 687 #if !defined(OS_ANDROID) | 686 #if !defined(OS_ANDROID) | 
| 688   OnFontFamilyPrefChanged(pref_name); | 687   OnFontFamilyPrefChanged(pref_name); | 
| 689 #endif | 688 #endif | 
| 690 | 689 | 
| 691   web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); | 690   web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); | 
| 692 } | 691 } | 
| OLD | NEW | 
|---|