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

Side by Side Diff: webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.cc

Issue 7790016: Hookup Gpu blacklist with NaCl Pepper3D access. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h"
6
7 #include "base/command_line.h"
8 #include "base/logging.h"
9 #include "ppapi/c/private/ppb_gpu_blacklist_private.h"
10 #include "webkit/plugins/plugin_switches.h"
11
12 namespace webkit {
13 namespace ppapi {
14
15 namespace {
16
17 bool IsGpuBlacklisted() {
18 CommandLine* command_line = CommandLine::ForCurrentProcess();
19 CHECK(command_line);
20 return command_line->HasSwitch(switches::kDisablePepper3dForUntrustedUse);
21 }
22
23 } // namespace
24
25 const PPB_GpuBlacklist_Private ppb_gpu_blacklist = {
26 &IsGpuBlacklisted,
27 };
28
29 // static
30 const PPB_GpuBlacklist_Private* PPB_GpuBlacklist_Private_Impl::GetInterface() {
31 return &ppb_gpu_blacklist;
32 }
33
34 } // namespace ppapi
35 } // namespace webkit
36
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698