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

Issue 3033030: [win] Don't initialize the crash reporter on windows if disabled by configuration management. (Closed)

Created:
10 years, 5 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
Reviewers:
nsylvain, danno
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Base URL:
ssh://mnissler@kea.muc/usr/local/google/home/mnissler/chrome/src/
Visibility:
Public.

Description

Don't initialize the crash reporter on windows if disabled by configuration management. BUG=49662 TEST=No crash reports get submitted if policy doesn't allow it. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54525

Patch Set 1 #

Patch Set 2 : fix policy provider unit tests. #

Total comments: 2

Patch Set 3 : Allow policy to force-enable metrics reporting. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -45 lines) Patch
M chrome/app/breakpad_win.cc View 1 2 4 chunks +45 lines, -6 lines 2 comments Download
M chrome/browser/configuration_policy_provider.cc View 1 2 2 chunks +16 lines, -15 lines 0 comments Download
M chrome/browser/configuration_policy_provider_win.cc View 6 chunks +7 lines, -15 lines 0 comments Download
M chrome/browser/configuration_policy_provider_win_unittest.cc View 5 chunks +4 lines, -9 lines 0 comments Download
A chrome/common/policy_constants.h View 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/common/policy_constants.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/common_constants.gypi View 1 2 1 chunk +2 lines, -0 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
Mattias Nissler (ping if slow)
Hi, could you review? danno please check the policy parts and I brought in nsylvain ...
10 years, 5 months ago (2010-07-27 18:54:45 UTC) #1
danno
policy parts LGTM
10 years, 4 months ago (2010-07-28 15:23:26 UTC) #2
nsylvain
The code LGTM but I'm not sure I understand the difference between that and GoogleUpdateSettings::GetCollectStatsConsent() ...
10 years, 4 months ago (2010-07-29 17:03:55 UTC) #3
Mattias Nissler (ping if slow)
On 2010/07/29 17:03:55, nsylvain wrote: > The code LGTM but I'm not sure I understand ...
10 years, 4 months ago (2010-07-29 21:06:37 UTC) #4
nsylvain
http://codereview.chromium.org/3033030/diff/2001/3001 File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/3033030/diff/2001/3001#newcode404 chrome/app/breakpad_win.cc:404: return false; should not this be true? Since by ...
10 years, 4 months ago (2010-07-29 21:28:12 UTC) #5
Mattias Nissler (ping if slow)
Ok, here's an updated version with logic that allows policy to force crash reporting on. ...
10 years, 4 months ago (2010-07-30 10:08:11 UTC) #6
nsylvain
Is the plumbing to make sure the option reflects correctly in the options menu done? ...
10 years, 4 months ago (2010-07-30 17:12:49 UTC) #7
Mattias Nissler (ping if slow)
The option dialog already adheres to the registry value. That's handled through the configuration management ...
10 years, 4 months ago (2010-07-30 18:14:05 UTC) #8
nsylvain
On Fri, Jul 30, 2010 at 11:14 AM, <mnissler@chromium.org> wrote: > The option dialog already ...
10 years, 4 months ago (2010-07-30 20:28:58 UTC) #9
Mattias Nissler (ping if slow)
10 years, 4 months ago (2010-08-02 09:41:51 UTC) #10
On 2010/07/30 20:28:58, nsylvain wrote:
> On Fri, Jul 30, 2010 at 11:14 AM, <mailto:mnissler@chromium.org> wrote:
> 
> > The option dialog already adheres to the registry value. That's handled
> > through
> > the configuration management support in PrefService (see
> > configuration_policy_provider_win.cc for the code that reads the registry).
> > I'd
> > love to go through that infrastructure also, but since the crash reporter
> > starts
> > very early, the infrastructure is not yet available and I need to resort to
> > reading bare registry keys.
> >
> >
> >
> > http://codereview.chromium.org/3033030/diff/3008/15001
> > File chrome/app/breakpad_win.cc (right):
> >
> > http://codereview.chromium.org/3033030/diff/3008/15001#newcode434
> > chrome/app/breakpad_win.cc:434: bool use_crash_service =
> > !controlled_by_policy &&
> > On 2010/07/30 17:12:49, nsylvain wrote:
> >
> >> I'm not sure when/how the registry value is going to be set, but if it
> >>
> > is
> >
> >> remotely possible that it gets set on the buildbot, then this code it
> >>
> > wrong.
> >
> >> Even if it's control by policy, if the HEADLESS env variable is set,
> >>
> > we should
> >
> >> use the crash_service.
> >>
> >
> >  People need that to debug too.
> >>
> >
> >
> >
> > The registry value is the hook administrators use to lock down Chrome on
> > their client machines. It wouldn't make sense to allow users to work
> > around the configuration policy by setting an environment variable. The
> > registry value will never be set on the buildbots, unless admins try to
> > lock down chrome on those machines. But that parameter we (or you,
> > technically) control.
> 
> 
> I assume the main reason for administrators to lock down chrome is because
> they don't want to send crash dump to Google, right?

Yes, that's one aspect.

> 
> using the crash_service will not send crash dumps to Google. It just saves
> them locally.

I'd like to first make sure Chrome doesn't do any crash dumping. If we get
requests for local crash dumping in corporate environments (but not sending
information to Google) we can add appropriate functionality to the policy code.

> 
> But if you think this should not be an issue, then i'm ok... as long as
> google does not start doing that!

As long as we have root on our development and build machines, there's no issue
:)

> 
> 
> >
> > http://codereview.chromium.org/3033030/diff/3008/15007
> > File chrome/common_constants.gypi (right):
> >
> > http://codereview.chromium.org/3033030/diff/3008/15007#newcode27
> > chrome/common_constants.gypi:27: 'common/net/gaia/gaia_constants.cc',
> > On 2010/07/30 17:12:49, nsylvain wrote:
> >
> >> are you supposed to svn add those files too?
> >>
> >
> > I suppose you looked at the diff to the previous patch. They only show
> > up since someone else added them meanwhile and I rebased to ToT, but are
> > not part of this CL.
> 
> Oh, ok :)
> 
> LGTM
> 
> >
> >
> > http://codereview.chromium.org/3033030/show
> >
>

Powered by Google App Engine
This is Rietveld 408576698