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

Issue 2637173004: [Sync] Do not use base::RandBytesAsString to generate random string (Closed)

Created:
3 years, 11 months ago by Gang Wu
Modified:
3 years, 11 months ago
Reviewers:
maxbogue
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Do not use base::RandBytesAsString to generate random string Protobuf should use UTF-8 string, and base::RandBytesAsString won't generate ASCII/UTF-8 string. BUG=682881 Review-Url: https://codereview.chromium.org/2637173004 Cr-Commit-Position: refs/heads/master@{#445065} Committed: https://chromium.googlesource.com/chromium/src/+/20cbb6147f3978751c6cc69a9773dd3e93b2df56

Patch Set 1 #

Total comments: 2

Patch Set 2 : change the way to random string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M components/sync/engine_impl/commit.cc View 1 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 28 (22 generated)
Gang Wu
PTAL
3 years, 11 months ago (2017-01-20 00:51:37 UTC) #16
maxbogue
https://codereview.chromium.org/2637173004/diff/20001/components/sync/engine_impl/commit.cc File components/sync/engine_impl/commit.cc (right): https://codereview.chromium.org/2637173004/diff/20001/components/sync/engine_impl/commit.cc#newcode40 components/sync/engine_impl/commit.cc:40: std::string RandomString(int length) { I was poking around trying ...
3 years, 11 months ago (2017-01-20 01:24:57 UTC) #17
Gang Wu
updated! https://codereview.chromium.org/2637173004/diff/20001/components/sync/engine_impl/commit.cc File components/sync/engine_impl/commit.cc (right): https://codereview.chromium.org/2637173004/diff/20001/components/sync/engine_impl/commit.cc#newcode40 components/sync/engine_impl/commit.cc:40: std::string RandomString(int length) { On 2017/01/20 01:24:56, maxbogue ...
3 years, 11 months ago (2017-01-20 07:46:56 UTC) #20
maxbogue
lgtm
3 years, 11 months ago (2017-01-20 07:50:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637173004/40001
3 years, 11 months ago (2017-01-20 15:46:47 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 15:51:41 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/20cbb6147f3978751c6cc69a9773...

Powered by Google App Engine
This is Rietveld 408576698