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

Issue 2676573003: Copy item so dialog won't update model on cancel. (Closed)

Created:
3 years, 10 months ago by hcarmona
Modified:
3 years, 10 months ago
Reviewers:
tommycli
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Copy item so dialog won't update model on cancel. BUG=630157 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2676573003 Cr-Commit-Position: refs/heads/master@{#448102} Committed: https://chromium.googlesource.com/chromium/src/+/032c204569668e1ea6cf0604a99a073e074c8a62

Patch Set 1 #

Total comments: 2

Patch Set 2 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js View 1 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
hcarmona
PTAL, this makes a copy of the item before passing into the dialog.
3 years, 10 months ago (2017-02-03 19:28:10 UTC) #7
tommycli
https://codereview.chromium.org/2676573003/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js File chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js (right): https://codereview.chromium.org/2676573003/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js#newcode68 chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js:68: JSON.parse(JSON.stringify(menuEvent.model.item))); How "deep" is this object? If it's only ...
3 years, 10 months ago (2017-02-03 19:29:44 UTC) #8
hcarmona
https://codereview.chromium.org/2676573003/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js File chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js (right): https://codereview.chromium.org/2676573003/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js#newcode68 chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js:68: JSON.parse(JSON.stringify(menuEvent.model.item))); On 2017/02/03 19:29:43, tommycli wrote: > How "deep" ...
3 years, 10 months ago (2017-02-03 20:10:14 UTC) #10
tommycli
lgtm
3 years, 10 months ago (2017-02-03 20:13:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2676573003/20001
3 years, 10 months ago (2017-02-03 20:26:01 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 22:52:47 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/032c204569668e1ea6cf0604a99a...

Powered by Google App Engine
This is Rietveld 408576698