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

Issue 6297003: Fail gracefully if profile Temp dir can not be accessed. (Closed)

Created:
9 years, 11 months ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Fail gracefully if profile Temp dir can not be accessed. BUG=60634, 67627 TEST=Manually interfere with Temp directory creation, see that expected failures happen. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71788

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 17

Patch Set 3 : Remove fallback code. Use a histogram to inform us when getting DIR_USER_DATA_TEMP fails. #

Total comments: 11

Patch Set 4 : Address rev comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -45 lines) Patch
M base/file_util_win.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/convert_user_script.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/convert_web_app.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 2 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.h View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 1 2 3 4 chunks +32 lines, -10 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc View 1 2 6 chunks +11 lines, -5 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/common/extensions/extension_file_util.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 2 3 3 chunks +71 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Sam Kerner (Chrome)
9 years, 11 months ago (2011-01-14 13:41:56 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/6297003/diff/2001/chrome/browser/extensions/sandboxed_extension_unpacker.cc File chrome/browser/extensions/sandboxed_extension_unpacker.cc (right): http://codereview.chromium.org/6297003/diff/2001/chrome/browser/extensions/sandboxed_extension_unpacker.cc#newcode42 chrome/browser/extensions/sandboxed_extension_unpacker.cc:42: // Fall back to system temp. System temp is ...
9 years, 11 months ago (2011-01-14 22:34:44 UTC) #2
Sam Kerner (Chrome)
Removed the temp fallback code. I would like to get your thoughts on the value ...
9 years, 11 months ago (2011-01-18 19:26:44 UTC) #3
Erik does not do reviews
Yep. Let's come back to mitigation once we have a bit more data. http://codereview.chromium.org/6297003/diff/8001/chrome/browser/extensions/sandboxed_extension_unpacker.cc File ...
9 years, 11 months ago (2011-01-18 21:36:34 UTC) #4
Sam Kerner (Chrome)
Ready for another look. http://codereview.chromium.org/6297003/diff/8001/chrome/browser/extensions/sandboxed_extension_unpacker.cc File chrome/browser/extensions/sandboxed_extension_unpacker.cc (right): http://codereview.chromium.org/6297003/diff/8001/chrome/browser/extensions/sandboxed_extension_unpacker.cc#newcode52 chrome/browser/extensions/sandboxed_extension_unpacker.cc:52: ReportFailure(l10n_util::GetStringFUTF8( On 2011/01/18 21:36:34, Erik ...
9 years, 11 months ago (2011-01-19 05:01:24 UTC) #5
Erik does not do reviews
9 years, 11 months ago (2011-01-19 05:14:16 UTC) #6
LGTM

http://codereview.chromium.org/6297003/diff/8001/chrome/browser/extensions/sa...
File chrome/browser/extensions/sandboxed_extension_unpacker.cc (right):

http://codereview.chromium.org/6297003/diff/8001/chrome/browser/extensions/sa...
chrome/browser/extensions/sandboxed_extension_unpacker.cc:52:
ReportFailure(l10n_util::GetStringFUTF8(
On 2011/01/19 05:01:24, Sam Kerner (Chrome) wrote:
> On 2011/01/18 21:36:34, Erik Kay wrote:
> > maybe we should also add a histogram straight into ReportFailure since it's
a
> > central chokepoint
> 
> Added a histogram to count failures.  Also added one to count success, so that
> we can see the ratio.
> 
> I am not sure if you are suggesting that we count failures, or record the
reason
> in an enum.  Passing an enum of the failure type in at every call to
> ReportFailure() is something I would prefer to do in a different CL.

yeah, an enum would be best, but I'm fine doing that in a separate CL.

Powered by Google App Engine
This is Rietveld 408576698