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

Issue 1906723003: Unify UUID/GUID generation code across base and blink (Closed)

Created:
4 years, 8 months ago by kinuko
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify UUID/GUID generation code across base and blink We have at least three different UUID/GUID implementations in Chromium and they all use slightly different UUID/GUID format criteria. From code health (and consistent behavior) pov it'd be nice to unify them. - base/guid_posix.cc - returns mostly-correct Ver4 GUID string but in uppercase - base/guid_win.cc - returns mostly-correct Ver4 GUID string but in uppercase - third_party/WebKit/Source/platform/UUID.cpp - returns correct Ver4 GUID This patch tries to unify them into one location in base/guid.cc. BUG=561879 TEST=base_unittests:GUID* TEST=blink_platform_unittests:UUID* Committed: https://crrev.com/4ad1f556b877a4570c75349f41753cea587f4723 Cr-Commit-Position: refs/heads/master@{#390042}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Use uppercase GUID for push messaging for crbug.com/461867 #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : addressed comments #

Patch Set 6 : a little more cleanup #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : remove ASSERT, use StringPiece #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -171 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M base/guid.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -7 lines 0 comments Download
M base/guid.cc View 1 2 3 4 5 6 7 3 chunks +49 lines, -2 lines 0 comments Download
D base/guid_posix.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M base/guid_unittest.cc View 1 2 3 4 5 3 chunks +2 lines, -6 lines 0 comments Download
D base/guid_win.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_app_identifier.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/UUID.cpp View 1 2 3 4 5 6 7 1 chunk +11 lines, -70 lines 2 comments Download

Messages

Total messages: 52 (27 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/1
4 years, 8 months ago (2016-04-21 14:07:21 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/162678) linux_chromium_compile_dbg_ng on ...
4 years, 8 months ago (2016-04-21 14:11:10 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/20001
4 years, 8 months ago (2016-04-21 14:25:01 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/40001
4 years, 8 months ago (2016-04-21 14:30:42 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/200588)
4 years, 8 months ago (2016-04-21 15:06:02 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/60001
4 years, 8 months ago (2016-04-21 15:26:01 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/57899)
4 years, 8 months ago (2016-04-21 18:20:25 UTC) #17
kinuko
Could you review? mark@ for //base changes johnme@ for //chrome/browser/push_messaging change (it's a bit unfortunate) ...
4 years, 8 months ago (2016-04-22 03:40:42 UTC) #21
johnme
push_messaging lgtm (with nit) - thanks! https://codereview.chromium.org/1906723003/diff/60001/chrome/browser/push_messaging/push_messaging_app_identifier.cc File chrome/browser/push_messaging/push_messaging_app_identifier.cc (right): https://codereview.chromium.org/1906723003/diff/60001/chrome/browser/push_messaging/push_messaging_app_identifier.cc#newcode69 chrome/browser/push_messaging/push_messaging_app_identifier.cc:69: // Always use ...
4 years, 8 months ago (2016-04-22 12:02:27 UTC) #22
Mark Mentovai
LGTM in base. In the CL description, you said that CoCreateGuid doesn’t conform to the ...
4 years, 8 months ago (2016-04-22 13:01:46 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/100001
4 years, 7 months ago (2016-04-25 14:22:53 UTC) #27
kinuko
Thanks! > In the CL description, you said that CoCreateGuid doesn’t conform to the RFC. ...
4 years, 7 months ago (2016-04-25 14:24:37 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/127112) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 7 months ago (2016-04-25 14:29:31 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/120001
4 years, 7 months ago (2016-04-26 05:54:54 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-26 07:44:52 UTC) #34
kinuko
Kent-san, can you review platform changes?
4 years, 7 months ago (2016-04-26 12:58:55 UTC) #36
tkent
New base dependency should be reviewed by esprehn. https://codereview.chromium.org/1906723003/diff/120001/third_party/WebKit/Source/platform/UUID.cpp File third_party/WebKit/Source/platform/UUID.cpp (right): https://codereview.chromium.org/1906723003/diff/120001/third_party/WebKit/Source/platform/UUID.cpp#newcode20 third_party/WebKit/Source/platform/UUID.cpp:20: ASSERT(uuid.is8Bit()); ...
4 years, 7 months ago (2016-04-26 13:24:34 UTC) #38
kinuko
esprehn@- could you review platform/DEPS change (and others files you care about)? (We could possibly ...
4 years, 7 months ago (2016-04-27 08:47:06 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/160001
4 years, 7 months ago (2016-04-27 08:47:32 UTC) #41
esprehn
lgtm
4 years, 7 months ago (2016-04-27 08:55:49 UTC) #42
esprehn
https://codereview.chromium.org/1906723003/diff/160001/third_party/WebKit/Source/platform/UUID.cpp File third_party/WebKit/Source/platform/UUID.cpp (right): https://codereview.chromium.org/1906723003/diff/160001/third_party/WebKit/Source/platform/UUID.cpp#newcode23 third_party/WebKit/Source/platform/UUID.cpp:23: return base::IsValidGUIDOutputString(utf8.asStringPiece()); Can this take a StringPiece so we ...
4 years, 7 months ago (2016-04-27 09:00:59 UTC) #43
kinuko
Thanks! https://codereview.chromium.org/1906723003/diff/160001/third_party/WebKit/Source/platform/UUID.cpp File third_party/WebKit/Source/platform/UUID.cpp (right): https://codereview.chromium.org/1906723003/diff/160001/third_party/WebKit/Source/platform/UUID.cpp#newcode23 third_party/WebKit/Source/platform/UUID.cpp:23: return base::IsValidGUIDOutputString(utf8.asStringPiece()); On 2016/04/27 09:00:59, esprehn wrote: > ...
4 years, 7 months ago (2016-04-27 09:21:20 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906723003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906723003/160001
4 years, 7 months ago (2016-04-27 10:24:50 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 7 months ago (2016-04-27 11:00:35 UTC) #50
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 11:02:05 UTC) #52
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4ad1f556b877a4570c75349f41753cea587f4723
Cr-Commit-Position: refs/heads/master@{#390042}

Powered by Google App Engine
This is Rietveld 408576698