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

Unified Diff: base/linux_util.cc

Issue 10535141: Cleanup: Move some const char definitions to the .cc file. (try 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/linux_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linux_util.cc
===================================================================
--- base/linux_util.cc (revision 141829)
+++ base/linux_util.cc (working copy)
@@ -1,4 +1,4 @@
-// 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.
@@ -103,7 +103,7 @@
return false;
}
- char *endptr;
+ char* endptr;
const unsigned long long int inode_ul =
strtoull(buf + sizeof(kSocketLinkPrefix) - 1, &endptr, 10);
if (*endptr != ']')
@@ -125,6 +125,13 @@
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;
@@ -211,7 +218,7 @@
struct dirent* dent;
while ((dent = readdir(proc))) {
- char *endptr;
+ char* endptr;
const unsigned long int pid_ul = strtoul(dent->d_name, &endptr, 10);
if (pid_ul == ULONG_MAX || *endptr)
continue;
@@ -272,7 +279,7 @@
std::vector<pid_t> tids;
struct dirent* dent;
while ((dent = readdir(task))) {
- char *endptr;
+ char* endptr;
const unsigned long int tid_ul = strtoul(dent->d_name, &endptr, 10);
if (tid_ul == ULONG_MAX || *endptr)
continue;
« no previous file with comments | « base/linux_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698