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 "build/build_config.h" | 21 #include "build/build_config.h" |
21 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
22 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" |
23 #include "chrome/browser/profiles/incognito_helpers.h" | 24 #include "chrome/browser/profiles/incognito_helpers.h" |
24 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/renderer_preferences_util.h" | 26 #include "chrome/browser/renderer_preferences_util.h" |
26 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 27 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
27 #include "chrome/common/pref_font_webkit_names.h" | 28 #include "chrome/common/pref_font_webkit_names.h" |
28 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
29 #include "chrome/common/pref_names_util.h" | 30 #include "chrome/common/pref_names_util.h" |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 } | 674 } |
674 | 675 |
675 void PrefsTabHelper::NotifyWebkitPreferencesChanged( | 676 void PrefsTabHelper::NotifyWebkitPreferencesChanged( |
676 const std::string& pref_name) { | 677 const std::string& pref_name) { |
677 #if !defined(OS_ANDROID) | 678 #if !defined(OS_ANDROID) |
678 OnFontFamilyPrefChanged(pref_name); | 679 OnFontFamilyPrefChanged(pref_name); |
679 #endif | 680 #endif |
680 | 681 |
681 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); | 682 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); |
682 } | 683 } |
OLD | NEW |