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

Issue 3058003: Load the token from the user settings DB as a blob because it might include (Closed)

Created:
10 years, 5 months ago by albertb
Modified:
9 years, 3 months ago
CC:
chromium-reviews, idana, Raghu Simha, ben+cc_chromium.org, pam+watch_chromium.org, John Grabowski, tim (not reviewing), Paweł Hajdan Jr., ncarter (slow)
Visibility:
Public.

Description

Load the token from the user settings DB as a blob because it might include NULLs now that encrypt it. BUG=49593 TEST=manually tested + updated unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53210

Patch Set 1 #

Patch Set 2 : Make the test fail without the patch #

Total comments: 2

Patch Set 3 : Bind the token with bind_blob #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M chrome/browser/sync/util/user_settings_posix.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/util/user_settings_unittest.cc View 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
albertb
Hi Tim, Since Encryptor is now *really* encrypting the auth token on Linux and Mac, ...
10 years, 5 months ago (2010-07-20 23:27:48 UTC) #1
ncarter (slow)
http://codereview.chromium.org/3058003/diff/2001/3001 File chrome/browser/sync/util/user_settings_posix.cc (right): http://codereview.chromium.org/3058003/diff/2001/3001#newcode36 chrome/browser/sync/util/user_settings_posix.cc:36: statement.bind_string(2, encrypted_service_token); In the presence of null characters, does ...
10 years, 5 months ago (2010-07-20 23:33:00 UTC) #2
albertb
http://codereview.chromium.org/3058003/diff/2001/3001 File chrome/browser/sync/util/user_settings_posix.cc (right): http://codereview.chromium.org/3058003/diff/2001/3001#newcode36 chrome/browser/sync/util/user_settings_posix.cc:36: statement.bind_string(2, encrypted_service_token); On 2010/07/20 23:33:00, ncarter wrote: > In ...
10 years, 5 months ago (2010-07-20 23:45:27 UTC) #3
ncarter (slow)
10 years, 5 months ago (2010-07-20 23:50:07 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698