Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chrome/browser/extensions/extension_webkit_preferences.cc

Issue 147373005: Move webkit/common/webpreferences to content/public/common/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/extensions/extension_webkit_preferences.h" 5 #include "chrome/browser/extensions/extension_webkit_preferences.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "content/public/common/webpreferences.h"
9 #include "extensions/common/extension.h" 10 #include "extensions/common/extension.h"
10 #include "extensions/common/manifest.h" 11 #include "extensions/common/manifest.h"
11 #include "webkit/common/webpreferences.h"
12 12
13 namespace extension_webkit_preferences { 13 namespace extension_webkit_preferences {
14 14
15 void SetPreferences(const extensions::Extension* extension, 15 void SetPreferences(const extensions::Extension* extension,
16 extensions::ViewType render_view_type, 16 extensions::ViewType render_view_type,
17 WebPreferences* webkit_prefs) { 17 WebPreferences* webkit_prefs) {
18 if (!extension) 18 if (!extension)
19 return; 19 return;
20 20
21 if (!extension->is_hosted_app()) { 21 if (!extension->is_hosted_app()) {
(...skipping 20 matching lines...) Expand all
42 webkit_prefs->sync_xhr_in_documents_enabled = false; 42 webkit_prefs->sync_xhr_in_documents_enabled = false;
43 webkit_prefs->cookie_enabled = false; 43 webkit_prefs->cookie_enabled = false;
44 } 44 }
45 45
46 // Enable WebGL features that regular pages can't access, since they add 46 // Enable WebGL features that regular pages can't access, since they add
47 // more risk of fingerprinting. 47 // more risk of fingerprinting.
48 webkit_prefs->privileged_webgl_extensions_enabled = true; 48 webkit_prefs->privileged_webgl_extensions_enabled = true;
49 } 49 }
50 50
51 } // namespace extension_webkit_preferences 51 } // namespace extension_webkit_preferences
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698