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

Unified Diff: content/common/sandbox_linux/bpf_gpu_policy_linux.h

Issue 163433011: Clarify the process title of GPU broker process. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Build fix for unittests 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 side-by-side diff with in-line comments
Download patch
Index: content/common/sandbox_linux/bpf_gpu_policy_linux.h
diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.h b/content/common/sandbox_linux/bpf_gpu_policy_linux.h
index 6b1ba4a4c318520ceefc06f872559cfd33a6b352..6d6c2941fddea24b49f6c85cc7dbd76e86d82377 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.h
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/callback_forward.h"
#include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h"
namespace sandbox {
@@ -28,13 +29,13 @@ class GpuProcessPolicy : public SandboxBPFBasePolicy {
protected:
// Start a broker process to handle open() inside the sandbox.
- // |broker_sandboxer_callback| is a callback that will enable a suitable
+ // |gpu_broker_child_init_callback| is a callback that will enable a suitable
// sandbox for the broker process itself.
jln (very slow on Chromium) 2014/02/20 23:38:52 Let's call it clearly broker_sandboxer_callback si
dshwang 2014/02/21 07:03:13 yep, done.
// |read_whitelist_extra| and |write_whitelist_extra| are lists of file
// names that should be whitelisted by the broker process, in addition to
// the basic ones.
void InitGpuBrokerProcess(
- bool (*broker_sandboxer_callback)(void),
+ const base::Callback<bool(void)>& gpu_broker_child_init_callback,
const std::vector<std::string>& read_whitelist_extra,
const std::vector<std::string>& write_whitelist_extra);

Powered by Google App Engine
This is Rietveld 408576698