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

Issue 3133031: Make TestingProfile use ScopedTempDir. (Closed)

Created:
10 years, 4 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org
Visibility:
Public.

Description

Make TestingProfile use ScopedTempDir. Add some logic that tries to recover from common errors that happen on the bots. We need to CHECK in really bad cases because otherwise we'd end up writing to places where we should never write, like the filesystem root. TEST=unit_tests and others BUG=51833 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56909

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixes #

Patch Set 3 : trybots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -57 lines) Patch
M chrome/browser/bookmarks/bookmark_drag_data_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/net/gaia/token_service_unittest.cc View 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/testing_profile.h View 4 chunks +4 lines, -17 lines 0 comments Download
M chrome/test/testing_profile.cc View 1 4 chunks +28 lines, -30 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Paweł Hajdan Jr.
10 years, 4 months ago (2010-08-19 22:00:40 UTC) #1
chron_chromium.org
Does really nothing use the *count* param? When I tried this there were a few ...
10 years, 4 months ago (2010-08-19 22:05:32 UTC) #2
sky
I thought the other constructor was used too in a couple of places. Maybe they've ...
10 years, 4 months ago (2010-08-19 22:24:24 UTC) #3
Paweł Hajdan Jr.
Please take another look. http://codereview.chromium.org/3133031/diff/1/3 File chrome/test/testing_profile.cc (right): http://codereview.chromium.org/3133031/diff/1/3#newcode185 chrome/test/testing_profile.cc:185: FilePath fallback_dir(system_tmp_dir.AppendASCII("TestingProfilePath")); On 2010/08/19 22:24:24, ...
10 years, 4 months ago (2010-08-20 17:07:23 UTC) #4
chron_chromium.org
LGTM
10 years, 4 months ago (2010-08-20 19:54:23 UTC) #5
sky
10 years, 4 months ago (2010-08-20 20:05:29 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698