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

Issue 6793008: Replacing base::DIR_TEMP with ScopedTempDir when appropriate. (Closed)

Created:
9 years, 8 months ago by Mike West
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Replacing base::DIR_TEMP with ScopedTempDir when appropriate. BUG=73854 TEST=unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81245

Patch Set 1 #

Total comments: 10

Patch Set 2 : Reordering member variables. #

Patch Set 3 : About a third of the way done. #

Total comments: 34

Patch Set 4 : Paweł's comments on Round 1. #

Patch Set 5 : The rest. #

Patch Set 6 : Fixing temp/test typo. #

Patch Set 7 : I guess that should have been protected after all. #

Patch Set 8 : I obviously need a Windows test machine. #

Total comments: 11

Patch Set 9 : Paweł's comments on Round 2. #

Total comments: 8

Patch Set 10 : Round 3 (of 3?!) #

Patch Set 11 : Needed to rebase; patch didn't apply cleanly to save_package_unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -473 lines) Patch
M app/sql/connection_unittest.cc View 1 2 3 2 chunks +5 lines, -12 lines 0 comments Download
M app/sql/statement_unittest.cc View 1 2 3 5 chunks +6 lines, -11 lines 0 comments Download
M app/sql/transaction_unittest.cc View 1 2 3 3 chunks +6 lines, -12 lines 0 comments Download
M base/i18n/file_util_icu_unittest.cc View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_html_writer_unittest.cc View 1 2 3 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/download/save_package_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +16 lines, -21 lines 0 comments Download
M chrome/browser/extensions/user_script_master_unittest.cc View 1 2 11 chunks +12 lines, -21 lines 0 comments Download
M chrome/browser/history/starred_url_database_unittest.cc View 1 2 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/history/text_database_unittest.cc View 1 2 3 5 chunks +5 lines, -15 lines 0 comments Download
M chrome/browser/history/url_database_unittest.cc View 1 2 3 4 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/history/visit_database_unittest.cc View 1 2 5 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/importer/firefox_profile_lock_unittest.cc View 1 2 3 4 2 chunks +4 lines, -15 lines 0 comments Download
M chrome/browser/importer/importer_unittest.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/prefs/pref_service_uitest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 6 chunks +11 lines, -19 lines 0 comments Download
M chrome/browser/safe_browsing/bloom_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/sessions/session_service_unittest.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/tests/browser_uitest.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -13 lines 0 comments Download
M chrome/common/extensions/extension_unpacker_unittest.cc View 1 2 3 4 chunks +5 lines, -12 lines 0 comments Download
M chrome/common/json_pref_store_unittest.cc View 1 2 3 5 chunks +9 lines, -19 lines 0 comments Download
M chrome/common/json_value_serializer_unittest.cc View 1 2 3 4 5 chunks +6 lines, -18 lines 0 comments Download
M chrome/installer/util/copy_tree_work_item_unittest.cc View 1 2 29 chunks +37 lines, -51 lines 0 comments Download
M chrome/installer/util/create_dir_work_item_unittest.cc View 1 2 3 4 5 chunks +7 lines, -18 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item_unittest.cc View 1 2 3 5 chunks +8 lines, -22 lines 0 comments Download
M chrome/installer/util/lzma_util_unittest.cc View 1 2 3 4 5 5 chunks +6 lines, -19 lines 0 comments Download
M chrome/installer/util/move_tree_work_item_unittest.cc View 1 2 3 4 18 chunks +25 lines, -41 lines 0 comments Download
M chrome/installer/util/shell_util_unittest.cc View 1 2 3 4 5 chunks +7 lines, -20 lines 0 comments Download
M chrome/installer/util/work_item_list_unittest.cc View 1 2 3 4 6 chunks +8 lines, -15 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Mike West
Hey Dominic, one question related to this bug: as you mentioned in the description,`base::DIR_TEMP` shows ...
9 years, 8 months ago (2011-04-02 23:42:32 UTC) #1
Paweł Hajdan Jr.
Drive-by with testing comments. By the way, feel free to just make changes to all ...
9 years, 8 months ago (2011-04-04 08:08:54 UTC) #2
Mike West
Great, I appreciate the feedback. I'll start going through some of the other tests that ...
9 years, 8 months ago (2011-04-04 08:39:33 UTC) #3
Paweł Hajdan Jr.
http://codereview.chromium.org/6793008/diff/1/chrome/browser/profiles/profile_manager_unittest.cc File chrome/browser/profiles/profile_manager_unittest.cc (right): http://codereview.chromium.org/6793008/diff/1/chrome/browser/profiles/profile_manager_unittest.cc#newcode34 chrome/browser/profiles/profile_manager_unittest.cc:34: test_dir_ = temp_dir_.path(); On 2011/04/04 08:39:33, Mike West wrote: ...
9 years, 8 months ago (2011-04-04 09:05:31 UTC) #4
Mike West
Thanks. I've run out of free time for the moment, but I plan to go ...
9 years, 8 months ago (2011-04-04 09:16:07 UTC) #5
Mike West
So, I've made it through about 17 of the ~40 `base::DIR_TEMP` instances. Some are slightly ...
9 years, 8 months ago (2011-04-08 15:25:34 UTC) #6
Paweł Hajdan Jr.
Great, some comments just to remove even more unneeded code. Please make sure to scan ...
9 years, 8 months ago (2011-04-08 15:58:17 UTC) #7
Mike West
Thanks for the detailed review. :P I'll fiddle around with this a bit more today ...
9 years, 8 months ago (2011-04-11 11:07:06 UTC) #8
Mike West
http://codereview.chromium.org/6793008/diff/6001/app/sql/connection_unittest.cc File app/sql/connection_unittest.cc (right): http://codereview.chromium.org/6793008/diff/6001/app/sql/connection_unittest.cc#newcode24 app/sql/connection_unittest.cc:24: // If this fails something is going on with ...
9 years, 8 months ago (2011-04-11 14:47:04 UTC) #9
Paweł Hajdan Jr.
http://codereview.chromium.org/6793008/diff/7055/chrome/browser/extensions/extension_browsertest.cc File chrome/browser/extensions/extension_browsertest.cc (right): http://codereview.chromium.org/6793008/diff/7055/chrome/browser/extensions/extension_browsertest.cc#newcode38 chrome/browser/extensions/extension_browsertest.cc:38: DCHECK(temp_dir_.CreateUniqueTempDir()); Oops, two things are wrong about that: 1) ...
9 years, 8 months ago (2011-04-11 18:16:53 UTC) #10
Mike West
Some fixes, and a question about the EXPECT_TRUE/SetUp issue you noted. http://codereview.chromium.org/6793008/diff/7055/chrome/browser/extensions/extension_browsertest.cc File chrome/browser/extensions/extension_browsertest.cc (right): ...
9 years, 8 months ago (2011-04-12 07:04:04 UTC) #11
Paweł Hajdan Jr.
LGTM with comments, thank you! http://codereview.chromium.org/6793008/diff/7055/chrome/browser/extensions/extension_browsertest.cc File chrome/browser/extensions/extension_browsertest.cc (right): http://codereview.chromium.org/6793008/diff/7055/chrome/browser/extensions/extension_browsertest.cc#newcode38 chrome/browser/extensions/extension_browsertest.cc:38: DCHECK(temp_dir_.CreateUniqueTempDir()); On 2011/04/12 07:04:04, ...
9 years, 8 months ago (2011-04-12 08:32:02 UTC) #12
Mike West
Ok, I think everything you've noted is taken care of. Anything else catch your eye? ...
9 years, 8 months ago (2011-04-12 12:00:04 UTC) #13
Paweł Hajdan Jr.
LGTM (you didn't need to wait for that; when fixes are trivial and in this ...
9 years, 8 months ago (2011-04-12 12:17:10 UTC) #14
commit-bot: I haz the power
9 years, 8 months ago (2011-04-12 13:40:59 UTC) #15
Change committed as 81245

Powered by Google App Engine
This is Rietveld 408576698