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

Issue 6538025: Temp dir cleanup:... (Closed)

Created:
9 years, 10 months ago by grt (UTC plus 2)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Temp dir cleanup: - use ScopedTempDir in work items that need backup space for rollback - all work items that need backup space take a parent dir in which they create temp dirs - use ScopedTempDir in a few other places - renamed some parameters in certain functions so that the same name is used everywhere While I was at it, I couldn't help but replace Append(UTF8ToWide(version.GetString())) with the more pleasing AppendASCII(version.GetString()) BUG=70368 TEST=existing tests in installer_util_unittests cover the changes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75392

Patch Set 1 #

Total comments: 16

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -265 lines) Patch
M base/file_util_win.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/installer/setup/chrome_frame_quick_enable.cc View 1 3 chunks +7 lines, -1 line 0 comments Download
M chrome/installer/setup/install.cc View 5 chunks +5 lines, -29 lines 0 comments Download
M chrome/installer/setup/install_worker.h View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 10 chunks +23 lines, -19 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 10 chunks +29 lines, -29 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/util/copy_tree_work_item.h View 3 chunks +10 lines, -11 lines 0 comments Download
M chrome/installer/util/copy_tree_work_item.cc View 1 5 chunks +16 lines, -27 lines 0 comments Download
M chrome/installer/util/copy_tree_work_item_unittest.cc View 12 chunks +29 lines, -20 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item.h View 2 chunks +21 lines, -21 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item.cc View 1 5 chunks +73 lines, -64 lines 2 comments Download
M chrome/installer/util/delete_tree_work_item_unittest.cc View 4 chunks +16 lines, -3 lines 0 comments Download
M chrome/installer/util/installer_state.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/util/installer_state.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/installer/util/installer_state_unittest.cc View 5 chunks +21 lines, -4 lines 0 comments Download
M chrome/installer/util/move_tree_work_item.h View 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/installer/util/move_tree_work_item.cc View 1 3 chunks +15 lines, -12 lines 0 comments Download
M chrome/installer/util/work_item.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/installer/util/work_item.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/installer/util/work_item_list.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/installer/util/work_item_list.cc View 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
grt (UTC plus 2)
This change doesn't yet fix the temp-on-another-volume bug, but it lays some of the groundwork.
9 years, 10 months ago (2011-02-17 18:36:15 UTC) #1
tommi (sloooow) - chröme
lgtm http://codereview.chromium.org/6538025/diff/1/chrome/installer/setup/chrome_frame_quick_enable.cc File chrome/installer/setup/chrome_frame_quick_enable.cc (right): http://codereview.chromium.org/6538025/diff/1/chrome/installer/setup/chrome_frame_quick_enable.cc#newcode85 chrome/installer/setup/chrome_frame_quick_enable.cc:85: LOG(ERROR) << "Failed to create Temp directory"; I ...
9 years, 10 months ago (2011-02-17 20:00:49 UTC) #2
grt (UTC plus 2)
Thanks. Changes made. http://codereview.chromium.org/6538025/diff/1/chrome/installer/setup/chrome_frame_quick_enable.cc File chrome/installer/setup/chrome_frame_quick_enable.cc (right): http://codereview.chromium.org/6538025/diff/1/chrome/installer/setup/chrome_frame_quick_enable.cc#newcode85 chrome/installer/setup/chrome_frame_quick_enable.cc:85: LOG(ERROR) << "Failed to create Temp ...
9 years, 10 months ago (2011-02-17 20:26:41 UTC) #3
robertshield
LGTM http://codereview.chromium.org/6538025/diff/4002/chrome/installer/util/delete_tree_work_item.cc File chrome/installer/util/delete_tree_work_item.cc (right): http://codereview.chromium.org/6538025/diff/4002/chrome/installer/util/delete_tree_work_item.cc#newcode17 chrome/installer/util/delete_tree_work_item.cc:17: template<typename L, typename R> This is cool, but ...
9 years, 10 months ago (2011-02-18 13:48:18 UTC) #4
grt (UTC plus 2)
Thanks! http://codereview.chromium.org/6538025/diff/4002/chrome/installer/util/delete_tree_work_item.cc File chrome/installer/util/delete_tree_work_item.cc (right): http://codereview.chromium.org/6538025/diff/4002/chrome/installer/util/delete_tree_work_item.cc#newcode17 chrome/installer/util/delete_tree_work_item.cc:17: template<typename L, typename R> On 2011/02/18 13:48:18, robertshield ...
9 years, 10 months ago (2011-02-18 14:12:31 UTC) #5
tommi (sloooow) - chröme
9 years, 10 months ago (2011-02-18 16:43:54 UTC) #6
lgtm++

I think "Your cool is my annoying - grt" is going to be my new email
signature XD

On Fri, Feb 18, 2011 at 9:12 AM, <grt@chromium.org> wrote:

> Thanks!
>
>
>
>
>
http://codereview.chromium.org/6538025/diff/4002/chrome/installer/util/delete...
> File chrome/installer/util/delete_tree_work_item.cc (right):
>
>
>
http://codereview.chromium.org/6538025/diff/4002/chrome/installer/util/delete...
> chrome/installer/util/delete_tree_work_item.cc:17: template<typename L,
> typename R>
> On 2011/02/18 13:48:18, robertshield wrote:
>
>> This is cool, but seems to exist only because num_key_files_ is
>>
> defined as a
>
>> (signed) ptrdiff_t instead of an (unsigned) size_t. Why not just make
>>
> it a
>
>> size_t and avoid the hassle? Is there a practical case where that
>>
> would cause a
>
>> problem? (I have the looming feeling I'm missing something subtle here
>>
> ;))
>
> Your cool is my annoying.  You're right about the reason it exists.  The
> subtlety with using size_t for storing the size is that scoped_array's
> subscripting operator takes a ptrdiff_t, so casting needs to be done in
> one place or the other.  I thought it was a bit cleaner to do the size_t
> -> ptrdiff_t conversion only once early on rather than in the places
> where items in the scoped_array are accessed.
>
>
> http://codereview.chromium.org/6538025/
>

Powered by Google App Engine
This is Rietveld 408576698