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

Issue 546603002: Make base::IsValidGUID() accept GUID strings in lowercase. (Closed)

Created:
6 years, 3 months ago by Ben Chan
Modified:
6 years, 3 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Alex Vakulenko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make base::IsValidGUID() accept GUID strings in lowercase. It's pretty common that GUID strings express hex digits in lowercase. This CL modifies base::IsValidGUID() to also accept GUID strings in lowercase, so that the function can be used to validate GUIDs not generated by base::GenerateGUID(). BUG=None TEST=base_unittests Committed: https://crrev.com/57d121ace54a34516a4b758007632ac410dfe9bd Cr-Commit-Position: refs/heads/master@{#293449}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M base/guid.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M base/guid_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Ben Chan
6 years, 3 months ago (2014-09-04 22:53:36 UTC) #2
Alex Vakulenko (Google)
On 2014/09/04 22:53:25, Ben Chan wrote: > mailto:benchan@chromium.org changed reviewers: > + mailto:mark@chromium.org lgtm
6 years, 3 months ago (2014-09-04 22:53:41 UTC) #3
Mark Mentovai
LGTM https://codereview.chromium.org/546603002/diff/20001/base/guid_unittest.cc File base/guid_unittest.cc (right): https://codereview.chromium.org/546603002/diff/20001/base/guid_unittest.cc#newcode31 base/guid_unittest.cc:31: EXPECT_TRUE(base::IsValidGUID(base::StringToLowerASCII(guid))); Do this with StringToUpperASCII too, in case ...
6 years, 3 months ago (2014-09-04 22:59:04 UTC) #4
Ben Chan
https://codereview.chromium.org/546603002/diff/20001/base/guid_unittest.cc File base/guid_unittest.cc (right): https://codereview.chromium.org/546603002/diff/20001/base/guid_unittest.cc#newcode31 base/guid_unittest.cc:31: EXPECT_TRUE(base::IsValidGUID(base::StringToLowerASCII(guid))); On 2014/09/04 22:59:03, Mark Mentovai wrote: > Do ...
6 years, 3 months ago (2014-09-04 23:05:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benchan@chromium.org/546603002/40001
6 years, 3 months ago (2014-09-04 23:09:47 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/10427)
6 years, 3 months ago (2014-09-05 04:11:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benchan@chromium.org/546603002/40001
6 years, 3 months ago (2014-09-05 04:29:02 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 8ed6f5f2ce8f4d0bea7b9a47d61e727aae2c9316
6 years, 3 months ago (2014-09-05 05:09:10 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:37:09 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/57d121ace54a34516a4b758007632ac410dfe9bd
Cr-Commit-Position: refs/heads/master@{#293449}

Powered by Google App Engine
This is Rietveld 408576698