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

Issue 7585003: Fix to make Chromium more verbose about component extension loading error (Closed)

Created:
9 years, 4 months ago by hashimoto
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Fix to make Chromium more verbose about component extension loading error Change some DLOG and NOTREACHED to LOG, to make debugging component extensions on Release build easier Add a ValidateExtension call after loading a component extension to find errors such as file loading failure Change the signature of ValidateExtension for const correctness BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96295

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed a call for ValidateExtension #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M chrome/browser/extensions/extension_service.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension_file_util.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
hashimoto
Hello altimofeev, I will appreciate if you could review this change. This change will reduce ...
9 years, 4 months ago (2011-08-05 07:38:44 UTC) #1
altimofeev
I think that Aaron (aa@chromium.org) is the better person to review this CL. On 2011/08/05 ...
9 years, 4 months ago (2011-08-08 09:22:55 UTC) #2
hashimoto
Hello Aaron, could you review this CL? On 2011/08/08 09:22:55, altimofeev wrote: > I think ...
9 years, 4 months ago (2011-08-08 09:36:15 UTC) #3
Aaron Boodman
http://codereview.chromium.org/7585003/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/7585003/diff/1/chrome/browser/extensions/extension_service.cc#newcode1098 chrome/browser/extensions/extension_service.cc:1098: if (!extension_file_util::ValidateExtension(extension, &error)) { Please remove this. Component extensions ...
9 years, 4 months ago (2011-08-08 21:31:42 UTC) #4
hashimoto
Thank you for your kind review. I fixed the patch. http://codereview.chromium.org/7585003/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/7585003/diff/1/chrome/browser/extensions/extension_service.cc#newcode1098 ...
9 years, 4 months ago (2011-08-09 06:19:52 UTC) #5
Aaron Boodman
LGTM Please be careful in the future when using any function that looks like it ...
9 years, 4 months ago (2011-08-09 18:42:19 UTC) #6
Aaron Boodman
One more thing. It looks to me like base::ThreadRestrictions should have caused a crash with ...
9 years, 4 months ago (2011-08-09 18:47:05 UTC) #7
Aaron Boodman
It might have just been a DBG/RELEASE issue. ThreadRestrictions only warns in debug mode.
9 years, 4 months ago (2011-08-09 18:55:45 UTC) #8
hashimoto
9 years, 4 months ago (2011-08-10 09:04:15 UTC) #9
I am mainly working with ChromeOS, and Chrome on ChromeOS built with
BUILDTYPE=Debug does not work well for some unknown reasons now.
So I had no idea to try testing my code with Debug build.

Thank you for your kind advice.
I should, at least for non-ChromeOS-specific changes, do test with Debug build
on my Linux workstation.

On 2011/08/09 18:55:45, Aaron Boodman wrote:
> It might have just been a DBG/RELEASE issue. ThreadRestrictions only warns in
> debug mode.

Powered by Google App Engine
This is Rietveld 408576698