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

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

Issue 23257005: Move Feature and Manifest to top-level extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 "chrome/common/extensions/extension.h" 9 #include "chrome/common/extensions/extension.h"
10 #include "chrome/common/extensions/manifest.h" 10 #include "extensions/common/manifest.h"
11 #include "webkit/common/webpreferences.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
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // sometimes loaded with chrome-extension: URLs - we should expect the 54 // sometimes loaded with chrome-extension: URLs - we should expect the
55 // performance characteristics to be similar in both cases. 55 // performance characteristics to be similar in both cases.
56 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 56 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
57 if (extension->location() == extensions::Manifest::COMPONENT && 57 if (extension->location() == extensions::Manifest::COMPONENT &&
58 !command_line.HasSwitch(switches::kAllowWebUICompositing)) { 58 !command_line.HasSwitch(switches::kAllowWebUICompositing)) {
59 webkit_prefs->accelerated_compositing_enabled = false; 59 webkit_prefs->accelerated_compositing_enabled = false;
60 webkit_prefs->accelerated_2d_canvas_enabled = false; 60 webkit_prefs->accelerated_2d_canvas_enabled = false;
61 } 61 }
62 } 62 }
63 63
64 } // extension_webkit_preferences 64 } // namespace extension_webkit_preferences
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system.cc ('k') | chrome/browser/extensions/external_policy_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698