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

Issue 7274015: Keep the original index of password list items when filtering, so the right password can be deleted. (Closed)

Created:
9 years, 6 months ago by Mike Mammarella
Modified:
9 years, 6 months ago
Reviewers:
James Hawkins
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Keep the original index of password list items when filtering, so the right password can be deleted. (Instead of some random other password!) BUG=87221 TEST=deleteting passwords when the password list is filtered (searched) works correctly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90695

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M chrome/browser/resources/options/password_manager.js View 1 chunk +8 lines, -2 lines 4 comments Download
M chrome/browser/resources/options/password_manager_list.js View 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Mike Mammarella
This should be merged to all relevant branches.
9 years, 6 months ago (2011-06-28 01:24:36 UTC) #1
James Hawkins
http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js#newcode156 chrome/browser/resources/options/password_manager.js:156: var filter = function(entry, index, list) { |list| is ...
9 years, 6 months ago (2011-06-28 01:27:18 UTC) #2
Mike Mammarella
http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js#newcode156 chrome/browser/resources/options/password_manager.js:156: var filter = function(entry, index, list) { On 2011/06/28 ...
9 years, 6 months ago (2011-06-28 01:30:26 UTC) #3
James Hawkins
http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js#newcode156 chrome/browser/resources/options/password_manager.js:156: var filter = function(entry, index, list) { On 2011/06/28 ...
9 years, 6 months ago (2011-06-28 01:31:22 UTC) #4
Mike Mammarella
http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js File chrome/browser/resources/options/password_manager.js (right): http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/options/password_manager.js#newcode156 chrome/browser/resources/options/password_manager.js:156: var filter = function(entry, index, list) { On 2011/06/28 ...
9 years, 6 months ago (2011-06-28 01:34:19 UTC) #5
James Hawkins
9 years, 6 months ago (2011-06-28 01:37:15 UTC) #6
On 2011/06/28 01:34:19, Mike Mammarella wrote:
>
http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/option...
> File chrome/browser/resources/options/password_manager.js (right):
> 
>
http://codereview.chromium.org/7274015/diff/1/chrome/browser/resources/option...
> chrome/browser/resources/options/password_manager.js:156: var filter =
> function(entry, index, list) {
> On 2011/06/28 01:31:22, James Hawkins wrote:
> > On 2011/06/28 01:30:27, Mike Mammarella wrote:
> > > On 2011/06/28 01:27:18, James Hawkins wrote:
> > > > |list| is unused?
> > > 
> > > Correct, but it's apparently passed so I included it here.
> > 
> > Can't we not include it, like we did before?
> 
> We could, but I almost rewrote this by hand just because I needed the index
> parameter and didn't realize that it was available. I figure it's worth the
> self-documentation.
> 
>
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/fi...
> says it's there.

OK, LGTM

Powered by Google App Engine
This is Rietveld 408576698