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

Issue 6910012: Add method IsPassphraseRequiredForDecryption to ProfileSyncService (Closed)

Created:
9 years, 7 months ago by Raghu Simha
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing), idana
Visibility:
Public.

Description

Add method IsPassphraseRequiredForDecryption to ProfileSyncService ProfileSyncService needs to know in multiple places whether a passphrase is required for decryption. Right now, the logic involves checking passphrase_required_reason_ against a couple of states. This patch refactors this logic into the methods: IsPassphraseRequired IsPassphraseRequiredForDecryption BUG=81313, 81341, 81018 TEST=sync_integration_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83923

Patch Set 1 #

Total comments: 5

Patch Set 2 : CR feedback. #

Patch Set 3 : Re-enable failing test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -34 lines) Patch
M chrome/browser/sync/profile_sync_service.h View 1 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 7 chunks +10 lines, -19 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 2 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/test/live_sync/two_client_live_passwords_sync_test.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Raghu Simha
Tim, please review. Thanks. http://codereview.chromium.org/6910012/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/6910012/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode1206 chrome/browser/sync/profile_sync_service.cc:1206: IsPassphraseRequiredForEncryption()) { Tim: This line ...
9 years, 7 months ago (2011-05-02 23:47:23 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/6910012/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/6910012/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode1206 chrome/browser/sync/profile_sync_service.cc:1206: IsPassphraseRequiredForEncryption()) { On 2011/05/02 23:47:23, rsimha wrote: > Tim: ...
9 years, 7 months ago (2011-05-03 00:06:59 UTC) #2
Raghu Simha
http://codereview.chromium.org/6910012/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/6910012/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode1206 chrome/browser/sync/profile_sync_service.cc:1206: IsPassphraseRequiredForEncryption()) { On 2011/05/03 00:06:59, timsteele wrote: > On ...
9 years, 7 months ago (2011-05-03 00:24:00 UTC) #3
tim (not reviewing)
9 years, 7 months ago (2011-05-03 18:16:56 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698