|
|
Chromium Code Reviews|
Created:
3 years, 9 months ago by Noel Gordon Modified:
3 years, 9 months ago CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionImageWriter: Add ShouldResetImageWriter helper
Move the code for resetting the image_writer_ into a common helper.
Add comments, refer back to the original crbug.com issue and change
set that resolved issue 352442.
Covered by existing tests:
image_writer_utility_client_browsertest, image_writer_unittest
BUG=680928, 352442
Review-Url: https://codereview.chromium.org/2734773002
Cr-Commit-Position: refs/heads/master@{#458024}
Committed: https://chromium.googlesource.com/chromium/src/+/4342d3eacba11f513071dd4bb06b182b4f1245f3
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add comment. #
Messages
Total messages: 32 (18 generated)
The CQ bit was checked by noel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
noel@chromium.org changed reviewers: + dcheng@chromium.org, haven@chromium.org
This came up on https://codereview.chromium.org/2663603002 where it was suggested to add a helper. haven@ could you review please.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2734773002/diff/1/chrome/utility/image_writer... File chrome/utility/image_writer/image_writer_handler.cc (right): https://codereview.chromium.org/2734773002/diff/1/chrome/utility/image_writer... chrome/utility/image_writer/image_writer_handler.cc:123: if (!image_writer_) Please link to the original bug and also comment here why it's important not to reset if we're writing to the same image: When writing and verifying the same image, it's important not to close the file handles in between. Otherwise (insert reason from original commit description)
Description was changed from ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. BUG=680928,352442 ========== to ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. BUG=680928,352442 ==========
noel@chromium.org changed reviewers: + sammc@chromium.org, tibell@chromium.org
PTAL https://codereview.chromium.org/2734773002/diff/1/chrome/utility/image_writer... File chrome/utility/image_writer/image_writer_handler.cc (right): https://codereview.chromium.org/2734773002/diff/1/chrome/utility/image_writer... chrome/utility/image_writer/image_writer_handler.cc:123: if (!image_writer_) On 2017/03/06 21:47:46, dcheng wrote: > Please link to the original bug and also comment here why it's important not to > reset if we're writing to the same image: > > When writing and verifying the same image, it's important not to > close the file handles in between. Otherwise (insert reason from > original commit description) Done.
lgtm
lgtm
LGTM, thanks for the cleanup
noel@chromium.org changed reviewers: + jochen@chromium.org
+jochen for OWNERS
which test covers this code?
On 2017/03/17 14:12:03, jochen wrote: > which test covers this code? I added a note about the test: image_writer_utility_client_browsertest.
Description was changed from ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. BUG=680928,352442 ========== to ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. Covered by browser test: image_writer_utility_client_browsertest. BUG=680928,352442 ==========
Description was changed from ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. Covered by browser test: image_writer_utility_client_browsertest. BUG=680928,352442 ========== to ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. Covered by tests: image_writer_utility_client_browsertest, image_writer_unittest BUG=680928,352442 ==========
The CQ bit was checked by noel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/03/18 00:22:34, noel gordon wrote: > On 2017/03/17 14:12:03, jochen wrote: > > which test covers this code? > > I added a note about the test: image_writer_utility_client_browsertest. + image_writer_unittest
Description was changed from ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. Covered by tests: image_writer_utility_client_browsertest, image_writer_unittest BUG=680928,352442 ========== to ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. Covered by existing tests: image_writer_utility_client_browsertest, image_writer_unittest BUG=680928,352442 ==========
lgtm
The CQ bit was checked by noel@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 20001, "attempt_start_ts": 1489994695492570,
"parent_rev": "2c8b6311374bd76e4371e2a28699a7ecef9cf968", "commit_rev":
"4342d3eacba11f513071dd4bb06b182b4f1245f3"}
Message was sent while issue was closed.
Description was changed from ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. Covered by existing tests: image_writer_utility_client_browsertest, image_writer_unittest BUG=680928,352442 ========== to ========== ImageWriter: Add ShouldResetImageWriter helper Move the code for resetting the image_writer_ into a common helper. Add comments, refer back to the original crbug.com issue and change set that resolved issue 352442. Covered by existing tests: image_writer_utility_client_browsertest, image_writer_unittest BUG=680928,352442 Review-Url: https://codereview.chromium.org/2734773002 Cr-Commit-Position: refs/heads/master@{#458024} Committed: https://chromium.googlesource.com/chromium/src/+/4342d3eacba11f513071dd4bb06b... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/4342d3eacba11f513071dd4bb06b... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
