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

Issue 3968001: Update code that previously constructed strings from string iterators only to... (Closed)

Created:
10 years, 2 months ago by erikwright (departed)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, John Grabowski, amit, Paweł Hajdan Jr., Nirnimesh, Aaron Boodman, anantha, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Update code that previously constructed strings from string iterators only to use StringToInt. These usages now pass the iterators directly to the new StringToInt overloads. BUG=None TEST=All Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63515

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -72 lines) Patch
M base/sys_info_chromeos.cc View 1 2 3 1 chunk +9 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete_history_manager.cc View 1 2 3 3 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/customization_document.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/history/text_database.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/filter_false_positive_perftest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
chrome/common/extensions/extension.cc View 1 2 3 1 chunk +1 line, -1 line 1 comment Download
M chrome/renderer/webplugin_delegate_pepper.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/page_cycler/page_cycler_test.cc View 1 2 3 1 chunk +3 lines, -2 lines 1 comment Download
M chrome_frame/test/test_server.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M net/base/net_util.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M net/base/transport_security_state.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
MM net/base/x509_certificate_openssl.cc View 1 2 3 1 chunk +12 lines, -6 lines 0 comments Download
M net/ftp/ftp_ctrl_response_buffer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/ftp/ftp_directory_listing_parser_mlsd.cc View 1 2 3 1 chunk +13 lines, -5 lines 0 comments Download
M net/ftp/ftp_util.cc View 1 2 3 1 chunk +12 lines, -4 lines 0 comments Download
M net/http/http_chunked_decoder.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 5 chunks +13 lines, -11 lines 0 comments Download
M net/proxy/proxy_bypass_rules.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/multipart_response_delegate.cc View 1 2 3 2 chunks +9 lines, -15 lines 0 comments Download
M webkit/tools/test_shell/listener_leak_test.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
erikwright (departed)
Hi Mark, I feel guilty foisting this one on you too, but it does probably ...
10 years, 2 months ago (2010-10-21 15:10:40 UTC) #1
Mark Mentovai
Fix the patch up so that it compiles on all of the try platforms, and ...
10 years, 2 months ago (2010-10-21 16:09:29 UTC) #2
erikwright (departed)
On 2010/10/21 16:09:29, Mark Mentovai wrote: > Fix the patch up so that it compiles ...
10 years, 2 months ago (2010-10-21 20:11:40 UTC) #3
Mark Mentovai
LGTM http://codereview.chromium.org/3968001/diff/49001/44003 File chrome/browser/autocomplete_history_manager.cc (right): http://codereview.chromium.org/3968001/diff/49001/44003#newcode65 chrome/browser/autocomplete_history_manager.cc:65: number_string.begin() + 9, The old code would succeed ...
10 years, 2 months ago (2010-10-21 20:34:26 UTC) #4
erikwright (departed)
Thanks! Running a final try now before committing. http://codereview.chromium.org/3968001/diff/49001/44003 File chrome/browser/autocomplete_history_manager.cc (right): http://codereview.chromium.org/3968001/diff/49001/44003#newcode65 chrome/browser/autocomplete_history_manager.cc:65: number_string.begin() ...
10 years, 2 months ago (2010-10-22 13:50:22 UTC) #5
Erik does not do reviews
http://codereview.chromium.org/3968001/diff/49001/44008 File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/3968001/diff/49001/44008#newcode67 chrome/common/extensions/extension.cc:67: if (base::HexStringToInt(id->begin() + i, id->begin() + i + 1, ...
10 years, 2 months ago (2010-10-22 15:38:44 UTC) #6
erikwright (departed)
http://codereview.chromium.org/3968001/diff/49001/44008 File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/3968001/diff/49001/44008#newcode67 chrome/common/extensions/extension.cc:67: if (base::HexStringToInt(id->begin() + i, id->begin() + i + 1, ...
10 years, 2 months ago (2010-10-22 15:48:44 UTC) #7
Mark Mentovai
Erik Kay wrote: > Do you have an alternative suggestion? Read the comment above for ...
10 years, 2 months ago (2010-10-22 15:55:50 UTC) #8
Erik does not do reviews
On 2010/10/22 15:48:44, erikwright wrote: > http://codereview.chromium.org/3968001/diff/49001/44008 > File chrome/common/extensions/extension.cc (right): > > http://codereview.chromium.org/3968001/diff/49001/44008#newcode67 > ...
10 years, 2 months ago (2010-10-22 15:58:09 UTC) #9
Mark Mentovai
Using Hex*String*ToInt on a hexadecimal character at a time is too heavyweight for what you ...
10 years, 2 months ago (2010-10-22 16:38:24 UTC) #10
Erik does not do reviews
10 years, 2 months ago (2010-10-22 16:58:05 UTC) #11
On 2010/10/22 16:38:24, Mark Mentovai wrote:
> Using Hex*String*ToInt on a hexadecimal character at a time is too
> heavyweight for what you need. What the code in question is doing
> isn’t really converting anything to integers at all. It’s a simple
> alphabet translation.

*shrug* Since our new alphabet is contiguous, I guess I'd argue that converting
hex to int is equivalent (Erik's suggested code block is almost identical to
BaseCharToDigit), so why create a new function?  It's a tiny amount of code, so
I don't have a huge objection.  I'm really not trying to make a big deal out of
this.  :-) I was just curious where you guys were coming from.

Powered by Google App Engine
This is Rietveld 408576698