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

Issue 2407001: Linux: bring GNOME Keyring and KWallet integration back into a compilable state. (Closed)

Created:
10 years, 6 months ago by Mike Mammarella
Modified:
9 years, 7 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Linux: bring GNOME Keyring and KWallet integration back into a compilable state. Still disabled, however. BUG=12351, 25404 TEST=both now seem to work correctly when enabled (but this CL does not enable them) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48983

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 34

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+531 lines, -179 lines) Patch
M chrome/browser/password_manager/password_store.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_gnome.h View 1 2 3 4 5 2 chunks +38 lines, -10 lines 0 comments Download
M chrome/browser/password_manager/password_store_gnome.cc View 1 2 3 4 5 6 5 chunks +196 lines, -58 lines 0 comments Download
M chrome/browser/password_manager/password_store_kwallet.h View 1 2 3 4 5 5 chunks +53 lines, -28 lines 0 comments Download
M chrome/browser/password_manager/password_store_kwallet.cc View 1 2 3 4 5 11 chunks +241 lines, -81 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mike Mammarella
10 years, 6 months ago (2010-05-30 21:39:12 UTC) #1
Evan Stade
thanks sorry for nit-storm http://codereview.chromium.org/2407001/diff/6001/7002 File chrome/browser/password_manager/password_store_gnome.cc (right): http://codereview.chromium.org/2407001/diff/6001/7002#newcode1 chrome/browser/password_manager/password_store_gnome.cc:1: // Copyright (c) 2006-2010 The ...
10 years, 6 months ago (2010-06-02 03:51:53 UTC) #2
Mike Mammarella
http://codereview.chromium.org/2407001/diff/6001/7002 File chrome/browser/password_manager/password_store_gnome.cc (right): http://codereview.chromium.org/2407001/diff/6001/7002#newcode1 chrome/browser/password_manager/password_store_gnome.cc:1: // Copyright (c) 2006-2010 The Chromium Authors. All rights ...
10 years, 6 months ago (2010-06-03 20:27:07 UTC) #3
Evan Stade
http://codereview.chromium.org/2407001/diff/6001/7002 File chrome/browser/password_manager/password_store_gnome.cc (right): http://codereview.chromium.org/2407001/diff/6001/7002#newcode25 chrome/browser/password_manager/password_store_gnome.cc:25: { "origin_url", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING }, On 2010/06/03 20:27:07, Mike Mammarella ...
10 years, 6 months ago (2010-06-03 20:39:41 UTC) #4
Mike Mammarella
http://codereview.chromium.org/2407001/diff/6001/7002 File chrome/browser/password_manager/password_store_gnome.cc (right): http://codereview.chromium.org/2407001/diff/6001/7002#newcode25 chrome/browser/password_manager/password_store_gnome.cc:25: { "origin_url", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING }, On 2010/06/03 20:39:42, Evan Stade ...
10 years, 6 months ago (2010-06-03 22:05:29 UTC) #5
Evan Stade
10 years, 6 months ago (2010-06-03 22:15:36 UTC) #6
LGTM pending some action on the lock thing

-- Evan Stade



On Thu, Jun 3, 2010 at 3:05 PM,  <mdm@chromium.org> wrote:
>
> http://codereview.chromium.org/2407001/diff/6001/7002
> File chrome/browser/password_manager/password_store_gnome.cc (right):
>
> http://codereview.chromium.org/2407001/diff/6001/7002#newcode25
> chrome/browser/password_manager/password_store_gnome.cc:25: {
> "origin_url", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING },
> On 2010/06/03 20:39:42, Evan Stade wrote:
>>
>> On 2010/06/03 20:27:07, Mike Mammarella wrote:
>> > On 2010/06/02 03:51:53, Evan Stade wrote:
>> > > seems odd to me that there's no ID field. But I guess that's the
>
> api...
>>
>> >
>> > Yeah, the ID field is specified as the key when we insert and
>
> remove, but it's
>>
>> > not here in the list of data fields.
>
>> wait, I don't see it. Which parameter in
>
> gnome_keyring_delete_password_sync() is
>>
>> the ID?
>
> Ah, actually, I was thinking of the kwallet version. Yes, this doesn't
> have a key at all - you can search by any of the fields, and we have all
> the relevant fields from the PasswordForm here.
>
> http://codereview.chromium.org/2407001/diff/6001/7003
> File chrome/browser/password_manager/password_store_gnome.h (right):
>
> http://codereview.chromium.org/2407001/diff/6001/7003#newcode70
> chrome/browser/password_manager/password_store_gnome.h:70: Lock
> gnome_keyring_lock_;
> On 2010/06/03 20:39:42, Evan Stade wrote:
>>
>> On 2010/06/03 20:27:07, Mike Mammarella wrote:
>> > On 2010/06/02 03:51:53, Evan Stade wrote:
>> > > why do you need this? aren't all interactions synchronous and on
>
> the same
>>
>> > > thread?
>> >
>> > I don't know why it is necessary, but the original code had it and I
>
> don't
>>
>> know
>> > enough about GNOME keyring to be totally convinced it's not
>
> necessary. But it
>>
>> > does seem like the calls are all synchronous and on the same
>
> thread...
>
>> ping the original author, or the original reviewer? If neither of
>
> these people
>>
>> are responsive, you can add a TODO/file a bug to investigate.
>
> I'll look into that.
>
> http://codereview.chromium.org/2407001/diff/6001/7004
> File chrome/browser/password_manager/password_store_kwallet.cc (right):
>
> http://codereview.chromium.org/2407001/diff/6001/7004#newcode168
> chrome/browser/password_manager/password_store_kwallet.cc:168:
> FreeLoginsInListExcept(forms, &form);
> On 2010/06/03 20:39:42, Evan Stade wrote:
>>
>> On 2010/06/03 20:27:07, Mike Mammarella wrote:
>> > On 2010/06/02 03:51:53, Evan Stade wrote:
>> > > why don't you just dupe |form|, so you can use STLDeleteElements
>
> instead of
>>
>> > > creating FreeLoginsInListExcept()
>> > >
>> > > this also avoids a const cast.
>> >
>> > I could do that, but it seems a little bit contrived to allocate a
>
> new object
>>
>> > just to avoid three lines of code. If you think it's really bad to
>
> have the
>>
>> > const_cast I'll change it though.
>
>> the performance difference is negligible; the code complexity
>
> difference is not
>
>> and yes, const_cast is Bad.
>
> Done.
>
> http://codereview.chromium.org/2407001/diff/23001/24002
> File chrome/browser/password_manager/password_store_gnome.cc (right):
>
> http://codereview.chromium.org/2407001/diff/23001/24002#newcode129
> chrome/browser/password_manager/password_store_gnome.cc:129:
> vector<PasswordForm*> forms;
> On 2010/06/03 20:39:42, Evan Stade wrote:
>>
>> nit: declare this as late as possible
>
> Done.
>
> http://codereview.chromium.org/2407001/diff/23001/24002#newcode307
> chrome/browser/password_manager/password_store_gnome.cc:307:
> DCHECK(date_ok && date_created != 0);
> On 2010/06/03 20:39:42, Evan Stade wrote:
>>
>> nit: separate DCHECKS
>
> Done.
>
> http://codereview.chromium.org/2407001/show
>

Powered by Google App Engine
This is Rietveld 408576698