summaryrefslogtreecommitdiffstats
path: root/base/linux_util.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 05:55:51 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 05:55:51 +0000
commit912c64520e0e9f22bd49e43c7ee102e3b9de66a7 (patch)
tree7eb719597f880b6687c4c5094f83034529378229 /base/linux_util.h
parent48e4c173c27c8b539b0719c96985e50651b80d3b (diff)
downloadchromium_src-912c64520e0e9f22bd49e43c7ee102e3b9de66a7.zip
chromium_src-912c64520e0e9f22bd49e43c7ee102e3b9de66a7.tar.gz
chromium_src-912c64520e0e9f22bd49e43c7ee102e3b9de66a7.tar.bz2
Include output of "lsb_release -d" in crash reports.
/etc/lsb-release does not exist on all distros, and sometimes it does not provide any useful info. Whereas all LSB complaint distros return useful data with the lsb_release command. Review URL: http://codereview.chromium.org/155653 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/linux_util.h')
-rw-r--r--base/linux_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/linux_util.h b/base/linux_util.h
index aa418cc..973a2b0 100644
--- a/base/linux_util.h
+++ b/base/linux_util.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <string>
+
namespace base {
// Makes a copy of |pixels| with the ordering changed from BGRA to RGBA.
@@ -14,6 +16,10 @@ namespace base {
// it's assumed to be 4 * |width|.
uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride);
+// Get the Linux Distro if we can, or return "Unknown", similar to
+// GetWinVersion() in base/win_util.h.
+std::string GetLinuxDistro();
+
} // namespace base
#endif // BASE_LINUX_UTIL_H__