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

Side by Side Diff: content/gpu/gpu_main.cc

Issue 10534049: Disable the seccomp filter GPU process sandbox by default on Chrome OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #endif 9 #endif
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 { 132 {
133 TRACE_EVENT0("gpu", "Warm up HMAC"); 133 TRACE_EVENT0("gpu", "Warm up HMAC");
134 // Warm up the crypto subsystem, which needs to done pre-sandbox on all 134 // Warm up the crypto subsystem, which needs to done pre-sandbox on all
135 // platforms. 135 // platforms.
136 crypto::HMAC hmac(crypto::HMAC::SHA256); 136 crypto::HMAC hmac(crypto::HMAC::SHA256);
137 unsigned char key = '\0'; 137 unsigned char key = '\0';
138 bool ret = hmac.Init(&key, sizeof(key)); 138 bool ret = hmac.Init(&key, sizeof(key));
139 (void) ret; 139 (void) ret;
140 } 140 }
141 141
142 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 142 #if defined(OS_LINUX)
143 { 143 {
144 TRACE_EVENT0("gpu", "Initialize sandbox"); 144 TRACE_EVENT0("gpu", "Initialize sandbox");
145 content::InitializeSandbox(); 145 content::InitializeSandbox();
146 } 146 }
147 #endif 147 #endif
148 148
149 { 149 {
150 TRACE_EVENT0("gpu", "Initialize COM"); 150 TRACE_EVENT0("gpu", "Initialize COM");
151 base::win::ScopedCOMInitializer com_initializer; 151 base::win::ScopedCOMInitializer com_initializer;
152 } 152 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 { 205 {
206 TRACE_EVENT0("gpu", "Run Message Loop"); 206 TRACE_EVENT0("gpu", "Run Message Loop");
207 main_message_loop.Run(); 207 main_message_loop.Run();
208 } 208 }
209 209
210 child_thread->StopWatchdog(); 210 child_thread->StopWatchdog();
211 211
212 return 0; 212 return 0;
213 } 213 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698