Index: base/sys_info_chromeos.cc |
diff --git a/base/sys_info_chromeos.cc b/base/sys_info_chromeos.cc |
index f1c6664fabd4edb8a72dd3498eeb53ae939ceac2..f84a2a5f81ba78469895b0275f1bd672f379466e 100644 |
--- a/base/sys_info_chromeos.cc |
+++ b/base/sys_info_chromeos.cc |
@@ -9,6 +9,7 @@ |
#include "base/file_util.h" |
#include "base/lazy_instance.h" |
#include "base/string_number_conversions.h" |
+#include "base/string_piece.h" |
#include "base/string_tokenizer.h" |
#include "base/threading/thread_restrictions.h" |
@@ -96,17 +97,17 @@ void SysInfo::ParseLsbRelease(const std::string& lsb_release, |
StringTokenizer tokenizer(version, "."); |
for (int i = 0; i < 3 && tokenizer.GetNext(); ++i) { |
if (0 == i) { |
- StringToInt(tokenizer.token_begin(), |
- tokenizer.token_end(), |
+ StringToInt(StringPiece(tokenizer.token_begin(), |
+ tokenizer.token_end()), |
major_version); |
*minor_version = *bugfix_version = 0; |
} else if (1 == i) { |
- StringToInt(tokenizer.token_begin(), |
- tokenizer.token_end(), |
+ StringToInt(StringPiece(tokenizer.token_begin(), |
+ tokenizer.token_end()), |
minor_version); |
} else { // 2 == i |
- StringToInt(tokenizer.token_begin(), |
- tokenizer.token_end(), |
+ StringToInt(StringPiece(tokenizer.token_begin(), |
+ tokenizer.token_end()), |
bugfix_version); |
} |
} |