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

Unified Diff: chrome/browser/chromeos/customization_document.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: chrome/browser/chromeos/customization_document.cc
===================================================================
--- chrome/browser/chromeos/customization_document.cc (revision 63369)
+++ chrome/browser/chromeos/customization_document.cc (working copy)
@@ -103,7 +103,9 @@
if (!background_color_string.empty()) {
if (background_color_string[0] == '#') {
int background_int;
- base::HexStringToInt(background_color_string.substr(1), &background_int);
+ base::HexStringToInt(background_color_string.begin() + 1,
+ background_color_string.end(),
+ &background_int);
background_color_ = static_cast<SkColor>(0xff000000 | background_int);
} else {
// Literal color constants are not supported yet.

Powered by Google App Engine
This is Rietveld 408576698