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

Issue 1113213002: Generate Instance ID locally. (Closed)

Created:
5 years, 7 months ago by jianli
Modified:
5 years, 7 months ago
Reviewers:
agl, fgorski
CC:
chromium-reviews, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generate Instance ID locally. Implement InstanceIDImpl::GetID and InstanceIDImpl::DeleteID. The ID is not saved to the persistent store yet. BUG=477084 TEST=new tests Committed: https://crrev.com/22a3673df2a7734da6f67b962e493043aff87c96 Cr-Commit-Position: refs/heads/master@{#328222}

Patch Set 1 #

Patch Set 2 : Remove leftover code #

Total comments: 12

Patch Set 3 : Address feedback #

Total comments: 2

Patch Set 4 : Updated the IID generation algorithm #

Total comments: 1

Patch Set 5 : Address one more comment #

Total comments: 8

Patch Set 6 : Address more feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -8 lines) Patch
M components/components_tests.gyp View 4 chunks +6 lines, -0 lines 0 comments Download
A + components/gcm_driver/instance_id/DEPS View 1 chunk +4 lines, -3 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A components/gcm_driver/instance_id/instance_id_driver_unittest.cc View 1 2 3 1 chunk +130 lines, -0 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id_impl.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id_impl.cc View 1 2 3 4 5 3 chunks +47 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
jianli
5 years, 7 months ago (2015-04-30 20:10:19 UTC) #2
fgorski
https://codereview.chromium.org/1113213002/diff/20001/components/gcm_driver/instance_id/instance_id_driver_unittest.cc File components/gcm_driver/instance_id/instance_id_driver_unittest.cc (right): https://codereview.chromium.org/1113213002/diff/20001/components/gcm_driver/instance_id/instance_id_driver_unittest.cc#newcode72 components/gcm_driver/instance_id/instance_id_driver_unittest.cc:72: EXPECT_FALSE(creation_time1.is_null()); you can take before and after time and ...
5 years, 7 months ago (2015-04-30 22:13:12 UTC) #3
jianli
https://codereview.chromium.org/1113213002/diff/20001/components/gcm_driver/instance_id/instance_id_driver_unittest.cc File components/gcm_driver/instance_id/instance_id_driver_unittest.cc (right): https://codereview.chromium.org/1113213002/diff/20001/components/gcm_driver/instance_id/instance_id_driver_unittest.cc#newcode72 components/gcm_driver/instance_id/instance_id_driver_unittest.cc:72: EXPECT_FALSE(creation_time1.is_null()); On 2015/04/30 22:13:11, fgorski wrote: > you can ...
5 years, 7 months ago (2015-05-02 00:30:18 UTC) #4
fgorski
Mostly looks good. Let's figure out the format of generated instance ID. https://codereview.chromium.org/1113213002/diff/40001/components/gcm_driver/instance_id/instance_id_impl.cc File components/gcm_driver/instance_id/instance_id_impl.cc ...
5 years, 7 months ago (2015-05-04 16:11:19 UTC) #5
jianli
https://codereview.chromium.org/1113213002/diff/40001/components/gcm_driver/instance_id/instance_id_impl.cc File components/gcm_driver/instance_id/instance_id_impl.cc (right): https://codereview.chromium.org/1113213002/diff/40001/components/gcm_driver/instance_id/instance_id_impl.cc#newcode64 components/gcm_driver/instance_id/instance_id_impl.cc:64: id_ = base::GenerateGUID(); On 2015/05/04 16:11:19, fgorski wrote: > ...
5 years, 7 months ago (2015-05-04 20:14:49 UTC) #6
fgorski
LGTM with nit https://codereview.chromium.org/1113213002/diff/60001/components/gcm_driver/instance_id/instance_id_impl.cc File components/gcm_driver/instance_id/instance_id_impl.cc (right): https://codereview.chromium.org/1113213002/diff/60001/components/gcm_driver/instance_id/instance_id_impl.cc#newcode80 components/gcm_driver/instance_id/instance_id_impl.cc:80: base::StringPiece(reinterpret_cast<const char*>(bytes), 8), &id_); s/8/kInstanceIDByteLength/
5 years, 7 months ago (2015-05-04 20:22:49 UTC) #7
jianli
agl, could you please review the dependency on crypto? Thanks.
5 years, 7 months ago (2015-05-04 21:32:28 UTC) #9
agl
https://codereview.chromium.org/1113213002/diff/80001/components/gcm_driver/instance_id/instance_id_impl.cc File components/gcm_driver/instance_id/instance_id_impl.cc (right): https://codereview.chromium.org/1113213002/diff/80001/components/gcm_driver/instance_id/instance_id_impl.cc#newcode67 components/gcm_driver/instance_id/instance_id_impl.cc:67: // 1) Generates the cryptographically secure random number in ...
5 years, 7 months ago (2015-05-04 21:55:54 UTC) #10
jianli
https://codereview.chromium.org/1113213002/diff/80001/components/gcm_driver/instance_id/instance_id_impl.cc File components/gcm_driver/instance_id/instance_id_impl.cc (right): https://codereview.chromium.org/1113213002/diff/80001/components/gcm_driver/instance_id/instance_id_impl.cc#newcode67 components/gcm_driver/instance_id/instance_id_impl.cc:67: // 1) Generates the cryptographically secure random number in ...
5 years, 7 months ago (2015-05-04 22:07:20 UTC) #11
agl
LGTM for crypto.
5 years, 7 months ago (2015-05-04 22:19:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113213002/100001
5 years, 7 months ago (2015-05-04 22:20:30 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/7097)
5 years, 7 months ago (2015-05-04 23:01:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113213002/100001
5 years, 7 months ago (2015-05-04 23:21:57 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-05 00:02:04 UTC) #20
commit-bot: I haz the power
5 years, 7 months ago (2015-05-05 00:03:00 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/22a3673df2a7734da6f67b962e493043aff87c96
Cr-Commit-Position: refs/heads/master@{#328222}

Powered by Google App Engine
This is Rietveld 408576698