Commit eef23ec5 authored by thestig@chromium.org's avatar thestig@chromium.org

Cleanup: Move some const char definitions to the .cc file.

BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/10539099

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141810 0039d316-1c4b-4281-b951-d872f2087c98
parent 003eacc2
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
......@@ -125,6 +125,13 @@ bool ProcPathGetInode(ino_t* inode_out, const char* path, bool log = false) {
namespace base {
const char kFindInodeSwitch[] = "--find-inode";
// This should be kept in sync with sandbox/linux/suid/sandbox.c
const long kSUIDSandboxApiNumber = 1;
const char kSandboxEnvironmentApiRequest[] = "SBX_CHROME_API_RQ";
const char kSandboxEnvironmentApiProvides[] = "SBX_CHROME_API_PRV";
// Account for the terminating null character.
static const int kDistroSize = 128 + 1;
......
......@@ -15,12 +15,11 @@
namespace base {
static const char kFindInodeSwitch[] = "--find-inode";
extern const char kFindInodeSwitch[];
// This should be kept in sync with sandbox/linux/suid/sandbox.c
static const long kSUIDSandboxApiNumber = 1;
static const char kSandboxEnvironmentApiRequest[] = "SBX_CHROME_API_RQ";
static const char kSandboxEnvironmentApiProvides[] = "SBX_CHROME_API_PRV";
extern const long kSUIDSandboxApiNumber;
extern const char kSandboxEnvironmentApiRequest[];
extern const char kSandboxEnvironmentApiProvides[];
// This is declared here so the crash reporter can access the memory directly
// in compromised context without going through the standard library.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment