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

Unified Diff: chrome/renderer/webplugin_delegate_pepper.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/renderer/webplugin_delegate_pepper.cc
===================================================================
--- chrome/renderer/webplugin_delegate_pepper.cc (revision 63369)
+++ chrome/renderer/webplugin_delegate_pepper.cc (working copy)
@@ -614,7 +614,8 @@
// Return the least significant 8 characters (i.e. 4 bytes)
// of the 32 character hexadecimal result as an int.
int int_val;
- base::HexStringToInt(hex_md5.substr(24), &int_val);
+ DCHECK_EQ(hex_md5.length(), 32u);
+ base::HexStringToInt(hex_md5.begin() + 24, hex_md5.end(), &int_val);
*value = int_val;
return NPERR_NO_ERROR;
}

Powered by Google App Engine
This is Rietveld 408576698