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

Issue 1878083002: Implement IsAsciiUpper and IsAsciiLower in base/strings/string_util.h (Closed)

Created:
4 years, 8 months ago by Zhongyi Shi
Modified:
4 years, 8 months ago
Reviewers:
brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org, jshin+watch_chromium.org, ramant (doing other things)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement IsAsciiUpper and IsAsciiLower in base/strings/string_util.h and remove duplicate code in the code base. This is initially introduced by Quic Merge process. As we found the code is duplicated in a lot of places, rtenneti@ suggested to implement these methods in base/ and remove duplicated code. BUG= Committed: https://crrev.com/239603426472eea818a54f08a0d419b6c1c40a9b Cr-Commit-Position: refs/heads/master@{#386845}

Patch Set 1 : #

Patch Set 2 : remove duplicate code in current codebase #

Patch Set 3 : git sync #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -61 lines) Patch
M base/environment.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M base/strings/string_util.h View 1 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_file_system_indexer.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/command.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M components/crash/content/app/breakpad_linux.cc View 1 1 chunk +1 line, -1 line 1 comment Download
M components/omnibox/browser/in_memory_url_index_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M components/test_runner/event_sender.cc View 1 2 chunks +4 lines, -9 lines 0 comments Download
M components/test_runner/test_common.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_manager_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/pepper/event_conversion.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/pepper/url_request_info_util.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/parse_number.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M net/cert/internal/verify_name_match.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/quic/spdy_utils.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M net/quic/test_tools/crypto_test_utils.cc View 1 2 chunks +2 lines, -1 line 2 comments Download
M net/spdy/spdy_stream.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M sandbox/win/src/win_utils.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M sql/connection.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M ui/base/accelerators/accelerator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/caca/caca_event_source.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M url/url_canon_fileurl.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M url/url_canon_internal_file.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M url/url_file.h View 1 3 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
Zhongyi Shi
Hi Brett, I am trying to move the ascii_isupper method impl to string/string_util.h to keep ...
4 years, 8 months ago (2016-04-12 00:26:54 UTC) #5
brettw
I'm not a fan of adding base helper functions for one caller on the off ...
4 years, 8 months ago (2016-04-12 16:28:04 UTC) #6
Zhongyi Shi
Thanks Brett, though I did agree these two functions are really simple and people usually ...
4 years, 8 months ago (2016-04-12 21:21:41 UTC) #10
brettw
lgtm https://codereview.chromium.org/1878083002/diff/80001/components/crash/content/app/breakpad_linux.cc File components/crash/content/app/breakpad_linux.cc (right): https://codereview.chromium.org/1878083002/diff/80001/components/crash/content/app/breakpad_linux.cc#newcode215 components/crash/content/app/breakpad_linux.cc:215: bool my_isxdigit(char c) { I think you can ...
4 years, 8 months ago (2016-04-12 21:41:07 UTC) #11
Zhongyi Shi
https://codereview.chromium.org/1878083002/diff/80001/net/quic/test_tools/crypto_test_utils.cc File net/quic/test_tools/crypto_test_utils.cc (right): https://codereview.chromium.org/1878083002/diff/80001/net/quic/test_tools/crypto_test_utils.cc#newcode59 net/quic/test_tools/crypto_test_utils.cc:59: bool HexChar(char c, uint8_t* value) { On 2016/04/12 21:41:07, ...
4 years, 8 months ago (2016-04-12 21:57:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878083002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878083002/80001
4 years, 8 months ago (2016-04-12 21:58:04 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 8 months ago (2016-04-12 23:13:29 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 23:15:27 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/239603426472eea818a54f08a0d419b6c1c40a9b
Cr-Commit-Position: refs/heads/master@{#386845}

Powered by Google App Engine
This is Rietveld 408576698