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

Unified Diff: base/linux_util.h

Issue 3186028: Make crash reporting client_id accessible through child_process_logging. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: address mark's feedback Created 10 years, 4 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 | « no previous file | base/linux_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linux_util.h
diff --git a/base/linux_util.h b/base/linux_util.h
index 91cb1138e959698e5aa5bcc303cf76b20acf4dbd..0d2f20e70a4ebf6b7fb2fdea699dd6c3291ee921 100644
--- a/base/linux_util.h
+++ b/base/linux_util.h
@@ -15,10 +15,17 @@ namespace base {
static const char kFindInodeSwitch[] = "--find-inode";
+// This is declared here so the crash reporter can access the memory directly
+// in compromised context without going through the standard library.
+extern char g_linux_distro[];
+
// Get the Linux Distro if we can, or return "Unknown", similar to
// GetWinVersion() in base/win_util.h.
std::string GetLinuxDistro();
+// Set the Linux Distro string.
+void SetLinuxDistro(const std::string& distro);
+
// Return the inode number for the UNIX domain socket |fd|.
bool FileDescriptorGetInode(ino_t* inode_out, int fd);
« no previous file with comments | « no previous file | base/linux_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698