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

Issue 10540149: [Sync] Persist keystore key across restarts (Closed)

Created:
8 years, 6 months ago by Nicolas Zea
Modified:
8 years, 4 months ago
Reviewers:
rlarocque, Nico
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Persist keystore key across restarts Adds the preference for the bootstrap token and the bootstrapping functionality in the cryptographer so that we persist the keystore key across restarts. With this, we should only ever do one GetKey per client, and only on the first time that client signs in/restarts on a version with GetKey support (although it's not persisted across signouts/profile nukes) BUG=129665 TEST=unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149344

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments and rebase #

Patch Set 3 : Fix double lock attempt #

Patch Set 4 : Rebase #

Patch Set 5 : Fix rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -33 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 7 chunks +34 lines, -5 lines 0 comments Download
M chrome/browser/sync/sync_prefs.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 4 chunks +17 lines, -7 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M sync/tools/sync_client.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M sync/util/cryptographer.h View 1 2 3 4 chunks +11 lines, -3 lines 0 comments Download
M sync/util/cryptographer.cc View 1 2 3 6 chunks +40 lines, -14 lines 0 comments Download
M sync/util/cryptographer_unittest.cc View 1 2 3 2 chunks +31 lines, -0 lines 0 comments Download
M sync/util/get_session_name.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Nicolas Zea
PTAL. More thorough testing of this functionality will be added once we actually use the ...
8 years, 6 months ago (2012-06-13 22:13:53 UTC) #1
rlarocque
https://chromiumcodereview.appspot.com/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://chromiumcodereview.appspot.com/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc#newcode724 chrome/browser/sync/glue/sync_backend_host.cc:724: const std::string& keystore_bootstrap_token, Is it really necessary to send ...
8 years, 6 months ago (2012-06-13 23:35:03 UTC) #2
Nicolas Zea
PTAL http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc#newcode724 chrome/browser/sync/glue/sync_backend_host.cc:724: const std::string& keystore_bootstrap_token, On 2012/06/13 23:35:04, rlarocque wrote: ...
8 years, 6 months ago (2012-06-15 00:42:06 UTC) #3
rlarocque
http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc#newcode724 chrome/browser/sync/glue/sync_backend_host.cc:724: const std::string& keystore_bootstrap_token, On 2012/06/15 00:42:07, nzea wrote: > ...
8 years, 6 months ago (2012-06-15 19:02:00 UTC) #4
Nicolas Zea
http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc#newcode724 chrome/browser/sync/glue/sync_backend_host.cc:724: const std::string& keystore_bootstrap_token, On 2012/06/15 19:02:00, rlarocque wrote: > ...
8 years, 6 months ago (2012-06-15 20:15:30 UTC) #5
rlarocque
On 2012/06/15 20:15:30, nzea wrote: > http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc > File chrome/browser/sync/glue/sync_backend_host.cc (right): > > http://codereview.chromium.org/10540149/diff/1/chrome/browser/sync/glue/sync_backend_host.cc#newcode724 > ...
8 years, 6 months ago (2012-06-15 21:14:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10540149/37001
8 years, 4 months ago (2012-07-31 23:20:35 UTC) #7
commit-bot: I haz the power
Presubmit check for 10540149-37001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-31 23:20:41 UTC) #8
Nicolas Zea
+Nico for chrome/common
8 years, 4 months ago (2012-07-31 23:32:06 UTC) #9
Nico
chrome/common lgtm Will these flags go away eventually? If not, is there a way to ...
8 years, 4 months ago (2012-07-31 23:42:39 UTC) #10
Nicolas Zea
On 2012/07/31 23:42:39, Nico wrote: > chrome/common lgtm > > Will these flags go away ...
8 years, 4 months ago (2012-07-31 23:50:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10540149/37001
8 years, 4 months ago (2012-07-31 23:50:48 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 01:13:40 UTC) #13
Change committed as 149344

Powered by Google App Engine
This is Rietveld 408576698