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

Unified Diff: base/sys_info_chromeos.cc

Issue 3968001: Update code that previously constructed strings from string iterators only to... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
Index: base/sys_info_chromeos.cc
===================================================================
--- base/sys_info_chromeos.cc (revision 63369)
+++ base/sys_info_chromeos.cc (working copy)
@@ -54,12 +54,18 @@
StringTokenizer tokenizer(version, ".");
for (int i = 0; i < 3 && tokenizer.GetNext(); i++) {
if (0 == i) {
- StringToInt(tokenizer.token(), major_version);
+ StringToInt(tokenizer.token_begin(),
+ tokenizer.token_end(),
+ major_version);
*minor_version = *bugfix_version = 0;
} else if (1 == i) {
- StringToInt(tokenizer.token(), minor_version);
+ StringToInt(tokenizer.token_begin(),
+ tokenizer.token_end(),
+ minor_version);
} else { // 2 == i
- StringToInt(tokenizer.token(), bugfix_version);
+ StringToInt(tokenizer.token_begin(),
+ tokenizer.token_end(),
+ bugfix_version);
}
}
}
« no previous file with comments | « no previous file | chrome/browser/autocomplete_history_manager.cc » ('j') | chrome/common/extensions/extension.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698