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

Unified Diff: chrome/browser/chromeos/login/default_user_images.cc

Issue 8921006: Standardize StringToInt{,64} interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix call syntax of StringToInt() in Chrome OS code. Created 9 years 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: chrome/browser/chromeos/login/default_user_images.cc
diff --git a/chrome/browser/chromeos/login/default_user_images.cc b/chrome/browser/chromeos/login/default_user_images.cc
index a11fa39d9e33b9a00b5184202dd8ca457cb0ebc6..055a5b806599336d3bc25599c769fdb84845e9eb 100644
--- a/chrome/browser/chromeos/login/default_user_images.cc
+++ b/chrome/browser/chromeos/login/default_user_images.cc
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/string_number_conversions.h"
+#include "base/string_piece.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
#include "grit/theme_resources.h"
@@ -50,8 +51,8 @@ bool IsDefaultImageString(const std::string& s,
return false;
int image_index = -1;
- if (base::StringToInt(s.begin() + prefix.length(),
- s.end(),
+ if (base::StringToInt(base::StringPiece(s.begin() + prefix.length(),
+ s.end()),
&image_index)) {
if (image_index < 0 || image_index >= kDefaultImagesCount)
return false;
« no previous file with comments | « chrome/browser/autocomplete_history_manager.cc ('k') | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698