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

Issue 10383276: Base: Crash when failing to close an scoped handle. (Closed)

Created:
8 years, 7 months ago by rvargas (doing something else)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Base: Crash when failing to close an scoped handle. BUG=127931 TEST=none TBR=willchan Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138199

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M base/win/scoped_handle.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
rvargas (doing something else)
8 years, 7 months ago (2012-05-22 02:27:45 UTC) #1
willchan no longer on Chromium
8 years, 7 months ago (2012-05-22 02:28:15 UTC) #2
lgtm

On Mon, May 21, 2012 at 7:27 PM, <rvargas@chromium.org> wrote:

> Reviewers: willchan,
>
> Description:
> Base: Crash when failing to close an scoped handle.
>
> BUG=127931
> TEST=none
> TBR=willchan
>
> Please review this at
https://chromiumcodereview.**appspot.com/10383276/<https://chromiumcodereview...
>
> SVN Base:
svn://svn.chromium.org/chrome/**trunk/src/<http://svn.chromium.org/chrome/trunk/src/>
>
> Affected files:
>  M     base/win/scoped_handle.h
>
>
> Index: base/win/scoped_handle.h
> ==============================**==============================**=======
> --- base/win/scoped_handle.h    (revision 138198)
> +++ base/win/scoped_handle.h    (working copy)
> @@ -74,7 +74,7 @@
>   void Close() {
>     if (Traits::IsHandleValid(handle_**)) {
>       if (!Traits::CloseHandle(handle_)**) {
> -        NOTREACHED();
> +        CHECK(false);
>       }
>       handle_ = Traits::NullHandle();
>     }
>
>
>

Powered by Google App Engine
This is Rietveld 408576698