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

Issue 8530003: Delete the temporary file when generating MHTML with the extension API. (Closed)

Created:
9 years, 1 month ago by Jay Civelli
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Erik does not do reviews, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Delete the temporary file when generating MHTML with the extension API. We now delete the temporary file created when generating MHTML from the extension API. BUG=97489 TEST=The MHTML extension API should still work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111180

Patch Set 1 #

Patch Set 2 : Clean-up #

Total comments: 10

Patch Set 3 : Added a test. #

Patch Set 4 : Minor clean-ups #

Total comments: 6

Patch Set 5 : Addressed sky's comments. #

Total comments: 4

Patch Set 6 : Addressed Mihai comments #

Patch Set 7 : Synced #

Patch Set 8 : Fixed Windows test failure. #

Patch Set 9 : Synced #

Patch Set 10 : Synced #

Patch Set 11 : Synced again #

Patch Set 12 : Fix previous screw-up where I had reverted patch 8 changes #

Patch Set 13 : One more sync #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -28 lines) Patch
M chrome/browser/extensions/extension_function.h View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_function.cc View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_save_page_api.h View 1 2 3 4 5 2 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_save_page_api.cc View 1 2 3 4 5 6 7 9 11 12 6 chunks +58 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_save_page_apitest.cc View 1 2 3 3 chunks +26 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/schema_generated_bindings.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 1 comment Download
M chrome/test/base/ui_test_utils.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 3 4 5 6 2 chunks +36 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/save_page/test.js View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/mhtml_generator.cc View 1 2 3 4 5 6 7 9 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Jay Civelli
9 years, 1 month ago (2011-11-14 05:34:17 UTC) #1
Mihai Parparita -not on Chrome
Is it possible to add a test for this (that the temp file is deleted)? ...
9 years, 1 month ago (2011-11-15 18:51:42 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/8530003/diff/2001/chrome/browser/extensions/extension_function.cc File chrome/browser/extensions/extension_function.cc (right): http://codereview.chromium.org/8530003/diff/2001/chrome/browser/extensions/extension_function.cc#newcode55 chrome/browser/extensions/extension_function.cc:55: // Default behavior is to delete this. This comment ...
9 years, 1 month ago (2011-11-15 18:56:30 UTC) #3
Jay Civelli
@sky: could you review the change to ui_test_utils? @mihai and antony: I added the test ...
9 years, 1 month ago (2011-11-18 23:14:32 UTC) #4
sky
http://codereview.chromium.org/8530003/diff/15002/chrome/test/base/ui_test_utils.cc File chrome/test/base/ui_test_utils.cc (right): http://codereview.chromium.org/8530003/diff/15002/chrome/test/base/ui_test_utils.cc#newcode232 chrome/test/base/ui_test_utils.cc:232: MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); Can you use RunAllPendingInMessageLoop again here? ...
9 years, 1 month ago (2011-11-18 23:24:56 UTC) #5
Jay Civelli
http://codereview.chromium.org/8530003/diff/15002/chrome/test/base/ui_test_utils.cc File chrome/test/base/ui_test_utils.cc (right): http://codereview.chromium.org/8530003/diff/15002/chrome/test/base/ui_test_utils.cc#newcode232 chrome/test/base/ui_test_utils.cc:232: MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); On 2011/11/18 23:24:56, sky wrote: > ...
9 years, 1 month ago (2011-11-19 00:01:12 UTC) #6
sky
LGTM
9 years, 1 month ago (2011-11-19 00:07:08 UTC) #7
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/8530003/diff/20002/chrome/browser/extensions/extension_save_page_api.cc File chrome/browser/extensions/extension_save_page_api.cc (right): http://codereview.chromium.org/8530003/diff/20002/chrome/browser/extensions/extension_save_page_api.cc#newcode100 chrome/browser/extensions/extension_save_page_api.cc:100: Extra newline. http://codereview.chromium.org/8530003/diff/20002/chrome/browser/extensions/extension_save_page_api.h File chrome/browser/extensions/extension_save_page_api.h (right): http://codereview.chromium.org/8530003/diff/20002/chrome/browser/extensions/extension_save_page_api.h#newcode61 chrome/browser/extensions/extension_save_page_api.h:61: ...
9 years, 1 month ago (2011-11-19 01:25:20 UTC) #8
Jay Civelli
@jam, could you review the 1 added line in content/renderer/mhtml_generator.cc? We were just not closing ...
9 years, 1 month ago (2011-11-21 02:12:48 UTC) #9
asargent_no_longer_on_chrome
lgtm
9 years, 1 month ago (2011-11-21 17:43:35 UTC) #10
jam
content lgtm
9 years, 1 month ago (2011-11-21 22:07:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/8530003/33001
9 years, 1 month ago (2011-11-21 22:09:32 UTC) #12
commit-bot: I haz the power
Try job failure for 8530003-33001 (retry) on win_rel for step "browser_tests". It's a second try, ...
9 years, 1 month ago (2011-11-22 00:20:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/8530003/33001
9 years, 1 month ago (2011-11-22 02:02:29 UTC) #14
commit-bot: I haz the power
Can't apply patch for file chrome/browser/extensions/extension_function.h. While running patch -p1 --forward --force; patching file chrome/browser/extensions/extension_function.h ...
9 years, 1 month ago (2011-11-22 02:02:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/8530003/37009
9 years, 1 month ago (2011-11-22 08:33:29 UTC) #16
Aaron Boodman
http://codereview.chromium.org/8530003/diff/37009/chrome/renderer/resources/extensions/schema_generated_bindings.js File chrome/renderer/resources/extensions/schema_generated_bindings.js (right): http://codereview.chromium.org/8530003/diff/37009/chrome/renderer/resources/extensions/schema_generated_bindings.js#newcode804 chrome/renderer/resources/extensions/schema_generated_bindings.js:804: SendResponseAck(request.id); Did you consider putting a "response_needs_ack" or something ...
9 years, 1 month ago (2011-11-22 09:23:52 UTC) #17
commit-bot: I haz the power
List of reviewers changed. aa@chromium.org did a drive-by without LGTM'ing!
9 years, 1 month ago (2011-11-22 09:42:03 UTC) #18
jcivelli
On 2011/11/22 09:42:03, I haz the power (commit-bot) wrote: > List of reviewers changed. mailto:aa@chromium.org ...
9 years, 1 month ago (2011-11-22 15:41:56 UTC) #19
Aaron Boodman
LGTM
9 years, 1 month ago (2011-11-22 17:17:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/8530003/37009
9 years, 1 month ago (2011-11-22 17:21:58 UTC) #21
commit-bot: I haz the power
9 years, 1 month ago (2011-11-22 18:35:01 UTC) #22
Change committed as 111180

Powered by Google App Engine
This is Rietveld 408576698