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

Issue 10828086: File Manager: fix an unsafe const reference (intermittent crash). (Closed)

Created:
8 years, 4 months ago by hshi1
Modified:
8 years, 4 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, bryeung
Visibility:
Public.

Description

File Manager: fix an unsafe const reference (intermittent crash). Regression started by (http://crrev.com/148492). The FilePath.BaseName().value() is a local temp object and it is not safe to assign it to a const string reference. Use the display_name instead. BUG=139736 TEST=lumpy Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149234 Landed as a separate CL: Add ChromeOS-specific OWNERS for extensions. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149237

Patch Set 1 #

Total comments: 2

Patch Set 2 : Toni's comment. #

Patch Set 3 : Rebase # 149111 #

Patch Set 4 : Add OWNER for chrome/browser/chromeos/extensions. #

Total comments: 2

Patch Set 5 : Rebase @ 149221 and add ChromeOS-specific owners. #

Patch Set 6 : Don't add ChromeOS-specific owners in this CL. Do it in a separate patch. #

Patch Set 7 : Add ChromeOS-specific OWNERS for extensions. #

Patch Set 8 : Rebase @ 149235. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M chrome/browser/chromeos/extensions/OWNERS View 1 2 3 4 6 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
hshi1
8 years, 4 months ago (2012-07-31 00:51:43 UTC) #1
satorux1
LGTM. Thanks!
8 years, 4 months ago (2012-07-31 00:57:56 UTC) #2
tbarzic
http://codereview.chromium.org/10828086/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10828086/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1156 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1156: files[0].file_path.BaseName().value(); yeah, this is my fault.. I forgot to ...
8 years, 4 months ago (2012-07-31 01:00:24 UTC) #3
hshi1
http://codereview.chromium.org/10828086/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10828086/diff/1/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1156 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1156: files[0].file_path.BaseName().value(); Ah I see so it IS a regression ...
8 years, 4 months ago (2012-07-31 01:04:41 UTC) #4
tbarzic
yep, it is a regression :) LGTM thanks for fixing this
8 years, 4 months ago (2012-07-31 01:07:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10828086/2003
8 years, 4 months ago (2012-07-31 01:13:20 UTC) #6
commit-bot: I haz the power
Presubmit check for 10828086-2003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-31 01:13:23 UTC) #7
hshi1
+@ben,@sky - could you please rubber-stamp LGTM please? For some reason this directory has no ...
8 years, 4 months ago (2012-07-31 01:16:23 UTC) #8
hshi1
+darin@ to review. The chrome/browser/chromeos/extensions folder has no OWNER defined and we used to be ...
8 years, 4 months ago (2012-07-31 17:37:22 UTC) #9
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10828086/diff/13001/chrome/browser/chromeos/extensions/OWNERS File chrome/browser/chromeos/extensions/OWNERS (right): http://codereview.chromium.org/10828086/diff/13001/chrome/browser/chromeos/extensions/OWNERS#newcode1 chrome/browser/chromeos/extensions/OWNERS:1: achuith@chromium.org BTW, Bryan is adding this file too: http://codereview.chromium.org/10832086/ ...
8 years, 4 months ago (2012-07-31 17:55:51 UTC) #10
bryeung
FYI: my change is landed @149221. Bryan On Tue, Jul 31, 2012 at 1:55 PM, ...
8 years, 4 months ago (2012-07-31 18:01:48 UTC) #11
darin (slow to review)
LGTM
8 years, 4 months ago (2012-07-31 18:09:27 UTC) #12
hshi1
Mihai, this adds ChromeOS-specific owners after rebase to revision 149221 (with the new OWNER file). ...
8 years, 4 months ago (2012-07-31 18:11:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10828086/3003
8 years, 4 months ago (2012-07-31 18:19:04 UTC) #14
tbarzic
On 2012/07/31 18:11:19, hshi1 wrote: > Mihai, this adds ChromeOS-specific owners after rebase to revision ...
8 years, 4 months ago (2012-07-31 18:21:11 UTC) #15
Mihai Parparita -not on Chrome
LGTM
8 years, 4 months ago (2012-07-31 18:23:01 UTC) #16
hshi1
8 years, 4 months ago (2012-07-31 18:24:16 UTC) #17
On 2012/07/31 18:21:11, tbarzic wrote:
> On 2012/07/31 18:11:19, hshi1 wrote:
> > Mihai, this adds ChromeOS-specific owners after rebase to revision 149221
> (with
> > the new OWNER file). Does this work for you? Thanks.
> > 
> >
>
http://codereview.chromium.org/10828086/diff/13001/chrome/browser/chromeos/ex...
> > File chrome/browser/chromeos/extensions/OWNERS (right):
> > 
> >
>
http://codereview.chromium.org/10828086/diff/13001/chrome/browser/chromeos/ex...
> > chrome/browser/chromeos/extensions/OWNERS:1: mailto:achuith@chromium.org
> > Done.
> > 
> > On 2012/07/31 17:55:51, Mihai Parparita wrote:
> > > BTW, Bryan is adding this file too:
http://codereview.chromium.org/10832086/
> > > 
> > > Might make sense to have a ChromeOS-specific section, in addition to the
> copy
> > of
> > > chrome/browser/extensions/OWNERS.
> 
> it may be a good idea to add this in a separate cl?

Makes sense. I'll land the fix first, then add the ChromeOS-specific owners in a
separate CL.

Powered by Google App Engine
This is Rietveld 408576698