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

Unified Diff: base/linux_util.cc

Issue 8507022: Remove the remaining exit time destructors from base for linux and chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 years, 1 month 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/process_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linux_util.cc
diff --git a/base/linux_util.cc b/base/linux_util.cc
index 67514696c5c2dc4f3244b2b060aed6760e6429fd..143d9193b2bf9c1a662ae7cac22b366d697971e5 100644
--- a/base/linux_util.cc
+++ b/base/linux_util.cc
@@ -154,9 +154,9 @@ std::string GetLinuxDistro() {
base::GetAppOutput(CommandLine(argv), &output);
if (output.length() > 0) {
// lsb_release -d should return: Description:<tab>Distro Info
- static const std::string field = "Description:\t";
- if (output.compare(0, field.length(), field) == 0) {
- SetLinuxDistro(output.substr(field.length()));
+ const char field[] = "Description:\t";
+ if (output.compare(0, strlen(field), field) == 0) {
+ SetLinuxDistro(output.substr(strlen(field)));
}
}
distro_state_singleton->CheckFinished();
« no previous file with comments | « no previous file | base/process_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698