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

Issue 437078: Report active extensions in crash reports (windows only). (Closed)

Created:
11 years ago by Aaron Boodman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Report active extensions in crash reports. This only implements Windows right now. Mac and linux will be separate CLs. "Active" is overloaded to mean different things depending on the process type: - browser: all enabled extensions - renderer: unique set of extensions from all user scripts - extension: extensions running in the process BUG=27169 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33255

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rework #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -50 lines) Patch
M chrome/app/breakpad_win.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/app/breakpad_win.cc View 1 3 chunks +63 lines, -50 lines 4 comments Download
M chrome/browser/extensions/extensions_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging_linux.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging_mac.mm View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging_win.cc View 1 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/renderer/user_script_slave.cc View 1 2 chunks +21 lines, -0 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Aaron Boodman
http://codereview.chromium.org/437078/diff/1/2 File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/437078/diff/1/2#newcode86 chrome/app/breakpad_win.cc:86: google_breakpad::CustomInfoEntry extension1(L"extension-1", L""); I realize this is ghetto. Following ...
11 years ago (2009-11-26 01:03:39 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/437078/diff/1/2 File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/437078/diff/1/2#newcode132 chrome/app/breakpad_win.cc:132: (*g_extension_ids)[i] = entries[13 + i].value; it would be nice ...
11 years ago (2009-11-28 15:49:58 UTC) #2
Aaron Boodman
Ok, I have reworked the way breakpad_win.cc works to be more amenable to my change. ...
11 years ago (2009-11-29 02:16:10 UTC) #3
Erik does not do reviews
http://codereview.chromium.org/437078/diff/4002/3005 File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/437078/diff/4002/3005#newcode38 chrome/app/breakpad_win.cc:38: std::vector<wchar_t*>* g_url_chunks = NULL; since |entries| is now a ...
11 years ago (2009-11-30 06:41:37 UTC) #4
Erik does not do reviews
11 years ago (2009-11-30 06:47:04 UTC) #5
sorry I didn't get this review to you earlier.  I spaced about the 3am
thing.  I think the code as-is is fine and these changes can be made in a
follow-on.

Erik


On Sun, Nov 29, 2009 at 10:41 PM, <erikkay@chromium.org> wrote:

>
> http://codereview.chromium.org/437078/diff/4002/3005
>
> File chrome/app/breakpad_win.cc (right):
>
> http://codereview.chromium.org/437078/diff/4002/3005#newcode38
> chrome/app/breakpad_win.cc:38: std::vector<wchar_t*>* g_url_chunks =
> NULL;
> since |entries| is now a vector itself, just make it a global and store
> offsets rather than managing extra vectors.
>
> http://codereview.chromium.org/437078/diff/4002/3005#newcode77
> chrome/app/breakpad_win.cc:77: const int kNumCustomInfoEntries = 17;
> this should be something like kMiscEntriesCount +
> kMaxReportedActiveExtensions + kMaxUrlChunks;
>
> http://codereview.chromium.org/437078/diff/4002/3005#newcode115
> chrome/app/breakpad_win.cc:115: // Browser-specific entries.
> maybe this else clause should be if (type == "browser").  I think the
> command-line args aren't that interesting for the other process types.
> this is also what the comment seems to be implying.
>
> http://codereview.chromium.org/437078/diff/4002/3005#newcode135
> chrome/app/breakpad_win.cc:135: DCHECK(entries.size() <=
> entries.capacity());
> capacity() is always >= size(), so this will never fail.  You need to
> compare against kNumCustomInfoEntries.
>
> http://codereview.chromium.org/437078/diff/4002/3015
>
> File chrome/renderer/user_script_slave.cc (right):
>
> http://codereview.chromium.org/437078/diff/4002/3015#newcode127
> chrome/renderer/user_script_slave.cc:127: scripts_[i]->extension_id())
> == extension_ids.end()) {
> good catch
>
>
> http://codereview.chromium.org/437078
>

Powered by Google App Engine
This is Rietveld 408576698