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/renderer_preferences_util.h" | 5 #include "chrome/browser/renderer_preferences_util.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "build/build_config.h" | 8 #include "build/build_config.h" |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "components/prefs/pref_service.h" |
12 #include "content/public/browser/host_zoom_map.h" | 12 #include "content/public/browser/host_zoom_map.h" |
13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
14 #include "content/public/common/renderer_preferences.h" | 14 #include "content/public/common/renderer_preferences.h" |
15 #include "content/public/common/webrtc_ip_handling_policy.h" | 15 #include "content/public/common/webrtc_ip_handling_policy.h" |
16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
17 | 17 |
18 #if defined(OS_LINUX) || defined(OS_ANDROID) | 18 #if defined(OS_LINUX) || defined(OS_ANDROID) |
19 #include "ui/gfx/font_render_params.h" | 19 #include "ui/gfx/font_render_params.h" |
20 #endif | 20 #endif |
21 | 21 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 prefs->subpixel_rendering = params.subpixel_rendering; | 128 prefs->subpixel_rendering = params.subpixel_rendering; |
129 #endif | 129 #endif |
130 | 130 |
131 #if !defined(OS_MACOSX) | 131 #if !defined(OS_MACOSX) |
132 prefs->plugin_fullscreen_allowed = | 132 prefs->plugin_fullscreen_allowed = |
133 pref_service->GetBoolean(prefs::kFullscreenAllowed); | 133 pref_service->GetBoolean(prefs::kFullscreenAllowed); |
134 #endif | 134 #endif |
135 } | 135 } |
136 | 136 |
137 } // namespace renderer_preferences_util | 137 } // namespace renderer_preferences_util |
OLD | NEW |