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

Issue 8468023: Move encryption related files from util folder to encryption folder. (Closed)

Created:
9 years, 1 month ago by lipalani1
Modified:
8 years ago
CC:
chromium-reviews, GeorgeY, ncarter (slow), akalin, Raghu Simha, tfarina, dyu1, Paweł Hajdan Jr., dhollowa
Visibility:
Public.

Description

Move encryption related files from util folder to encryption folder. BUG=103336 TEST=

Patch Set 1 #

Patch Set 2 : For review. #

Total comments: 3

Patch Set 3 : For review. #

Patch Set 4 : For review. #

Patch Set 5 : For review. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -1991 lines) Patch
M chrome/browser/autofill/autofill_ie_toolbar_import_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/abstract_profile_sync_service_test.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/sync/encryption/DEPS View 1 2 1 chunk +14 lines, -0 lines 1 comment Download
A + chrome/browser/sync/encryption/cryptographer.h View 1 2 3 chunks +4 lines, -4 lines 1 comment Download
A + chrome/browser/sync/encryption/cryptographer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/sync/encryption/cryptographer_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/sync/encryption/data_encryption.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/sync/encryption/data_encryption.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/sync/encryption/data_encryption_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/sync/encryption/nigori.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/sync/encryption/nigori.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/sync/encryption/nigori_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/sync/encryption/nigori_util.h View 1 2 3 chunks +19 lines, -16 lines 2 comments Download
A + chrome/browser/sync/encryption/nigori_util.cc View 1 2 3 4 8 chunks +36 lines, -25 lines 3 comments Download
A + chrome/browser/sync/encryption/nigori_util_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/get_commit_ids_command.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
D chrome/browser/sync/engine/nigori_util.h View 1 2 1 chunk +0 lines, -67 lines 0 comments Download
M chrome/browser/sync/engine/nigori_util.cc View 1 2 1 chunk +0 lines, -149 lines 0 comments Download
M chrome/browser/sync/engine/nigori_util_unittest.cc View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
M chrome/browser/sync/engine/syncapi_internal.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/syncer_util.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/internal_api/base_transaction.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/internal_api/base_transaction.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/internal_api/syncapi_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/internal_api/write_node.cc View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/syncable/directory_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/sync/util/cryptographer.h View 1 chunk +0 lines, -227 lines 0 comments Download
D chrome/browser/sync/util/cryptographer.cc View 1 chunk +0 lines, -420 lines 0 comments Download
D chrome/browser/sync/util/cryptographer_unittest.cc View 1 chunk +0 lines, -364 lines 0 comments Download
D chrome/browser/sync/util/data_encryption.h View 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/browser/sync/util/data_encryption.cc View 1 chunk +0 lines, -54 lines 0 comments Download
D chrome/browser/sync/util/data_encryption_unittest.cc View 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/browser/sync/util/nigori.h View 1 chunk +0 lines, -83 lines 0 comments Download
D chrome/browser/sync/util/nigori.cc View 1 chunk +0 lines, -261 lines 0 comments Download
D chrome/browser/sync/util/nigori_unittest.cc View 1 chunk +0 lines, -170 lines 0 comments Download
M chrome/browser/sync/util/user_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/util/user_settings_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 4 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
lipalani1
One of the synccodecleanup bugs. Moves the encryption related files in util to its own ...
9 years, 1 month ago (2011-11-15 22:43:14 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/8468023/diff/2001/chrome/browser/sync/engine/nigori_util.cc File chrome/browser/sync/engine/nigori_util.cc (left): http://codereview.chromium.org/8468023/diff/2001/chrome/browser/sync/engine/nigori_util.cc#oldcode11 chrome/browser/sync/engine/nigori_util.cc:11: #include "chrome/browser/sync/engine/syncer_util.h" should this file also move to /encryption?
9 years, 1 month ago (2011-11-16 17:58:49 UTC) #2
Nicolas Zea
I had no idea those data_encryptor and user_settings files existed. As best I can tell ...
9 years, 1 month ago (2011-11-16 23:35:47 UTC) #3
Ilya Sherman
On 2011/11/16 23:35:47, nzea wrote: > Given that, and given that autofill now appears to ...
9 years, 1 month ago (2011-11-16 23:56:19 UTC) #4
Nicolas Zea
There's a DecryptData call in the autofill_ie_toolbar_import_win.cc, which I believe comes from data_encryption.h. Is that ...
9 years, 1 month ago (2011-11-16 23:58:06 UTC) #5
tim (not reviewing)
Whoa!!! UserSettings! What a blast from the past. We've removed the TokenMigrator which was the ...
9 years, 1 month ago (2011-11-17 00:37:55 UTC) #6
lipalani1
Please review. If there are not much of an objection I will file a seperate ...
9 years, 1 month ago (2011-11-17 19:10:55 UTC) #7
tim (not reviewing)
Please make sure you track the UserSettings removal as well. LGTM!
9 years, 1 month ago (2011-11-17 19:48:43 UTC) #8
Nicolas Zea
LGTM once nits addressed. http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encryption/DEPS File chrome/browser/sync/encryption/DEPS (right): http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encryption/DEPS#newcode5 chrome/browser/sync/encryption/DEPS:5: "++chrome/browser/sync/internal_api", ++? http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encryption/cryptographer.h File chrome/browser/sync/encryption/cryptographer.h ...
9 years, 1 month ago (2011-11-17 21:04:30 UTC) #9
tim (not reviewing)
9 years ago (2011-12-09 23:13:24 UTC) #10
On 2011/11/17 21:04:30, nzea wrote:
> LGTM once nits addressed.
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> File chrome/browser/sync/encryption/DEPS (right):
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> chrome/browser/sync/encryption/DEPS:5: "++chrome/browser/sync/internal_api",
> ++?
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> File chrome/browser/sync/encryption/cryptographer.h (right):
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> chrome/browser/sync/encryption/cryptographer.h:18: #include
> "chrome/browser/sync/encryption/nigori.h"
> This #include and others in the patch are not in alphabetical order.
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> File chrome/browser/sync/encryption/nigori_util.cc (right):
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> chrome/browser/sync/encryption/nigori_util.cc:41:
> entry.Get(syncable::SPECIFICS),
> indent by one more space.
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> chrome/browser/sync/encryption/nigori_util.cc:80:
> entry.Get(syncable::NON_UNIQUE_NAME) != kEncryptedString);
> rewrite as:
>   return SpecificsNeedsEncryption(
>       encrypted_types,
>       entry.Get(syncable::SPECIFICS)) || encrypted_types.count(type) > 0 &&
>           entry.Get(NON_UNIQUE_NAME) != kEncryptedString);
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> chrome/browser/sync/encryption/nigori_util.cc:99: if (type ==
> syncable::PASSWORDS || type == syncable::NIGORI) {
> unindent this line
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> File chrome/browser/sync/encryption/nigori_util.h (right):
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> chrome/browser/sync/encryption/nigori_util.h:35: // Check if our unsyced
changes
> are encrypted if they need to be based on
> unsyced -> unsynced
> 
>
http://codereview.chromium.org/8468023/diff/1041/chrome/browser/sync/encrypti...
> chrome/browser/sync/encryption/nigori_util.h:69: }  // namespace browser_sync
> newline after

reminder ping on this

Powered by Google App Engine
This is Rietveld 408576698