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

Unified Diff: base/strings/utf_offset_string_conversions.cc

Issue 23619016: Switch the offset conversion routines from... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 3 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/strings/utf_offset_string_conversions.cc
===================================================================
--- base/strings/utf_offset_string_conversions.cc (revision 221015)
+++ base/strings/utf_offset_string_conversions.cc (working copy)
@@ -148,10 +148,6 @@
size_t adjustment = 0;
for (std::vector<Adjustment>::const_iterator i = adjustments_.begin();
i != adjustments_.end(); ++i) {
- if (*offset == i->original_offset && i->output_length == 0) {
- *offset = string16::npos;
- return;
- }
if (*offset <= i->original_offset)
break;
if (*offset < (i->original_offset + i->original_length)) {

Powered by Google App Engine
This is Rietveld 408576698