Closed
Bug 931424
Opened 11 years ago
Closed 10 years ago
Fix AutoMounter to use AutoRestore instead of AutoBool
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.3 C2/1.4 S2(17jan)
People
(Reporter: dhylands, Assigned: clayton)
References
Details
(Whiteboard: [good first bug][mentor=dhylands][lang=C++])
Attachments
(1 file)
1.43 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
When I coded up bug 928558, I wasn't aware of mozilla::AutoRestore. We should remove the AutoBool class that was introduced and replace it with AutoRestore.
Hi, i'm new to contributing to the mozilla code base, I know C++ and i've built firefox on my machine. I'd like to work on this bug, can you please point me in the right direction? (In reply to Dave Hylands [:dhylands] from comment #0) > When I coded up bug 928558, I wasn't aware of mozilla::AutoRestore. > > We should remove the AutoBool class that was introduced and replace it with > AutoRestore.
Reporter | ||
Comment 2•11 years ago
|
||
So the AutoMounter is only built for FirefoxOS on device, so you'd need to have a FirefoxOS phone and be able to build FxOS for it. This is the page for setting up your build environment for FxOS: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites If you have a supported phone, let me know, and I can help you get a build going for it.
Reporter | ||
Comment 3•11 years ago
|
||
The other option, is that you could test the functionality on something that you can build, then code the change, and I can build it and verfify that its working properly in the AutoMounter.
Assignee | ||
Comment 4•11 years ago
|
||
Apologies for stepping on Elodimuor's toes, but I thought I could help out with this bug (I'm new to Mozilla/B2G, but I do have a phone to test on). How do I go about testing the change? (I thought "make check" should've done the trick, but it doesn't. I'm getting the impression that a lot of the Mozilla docs don't necessarily apply to B2G. For instance, there seems to be a general preferance for hg, but all the B2G docs I've seen show examples with git...)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #826219 -
Flags: review?(dhylands)
Reporter | ||
Comment 6•11 years ago
|
||
The patch looks good. I'll apply it and test it out on Monday. For this particular change, testing it involves adding some printf_stderr's to verify when UpdateState is called and when it tries to recurse. IIRC, triggering the recursion happens by playing some Music with with Music app, enabled USB Mass Storage, and stopping the Music.
Updated•11 years ago
|
Assignee: nobody → clayton
Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 826219 [details] [diff] [review] Remove AutoBool, Use AutoRestore instead Review of attachment 826219 [details] [diff] [review]: ----------------------------------------------------------------- Tested on my unagi, and it seems to behaving the same as before the patch - Thanks
Attachment #826219 -
Flags: review?(dhylands) → review+
Comment 9•10 years ago
|
||
dhylands, can this patch be checked in, given comment 7? (and if so, could you check it in, or flag this as checkin-needed?)
Reporter | ||
Comment 10•10 years ago
|
||
Hmm. This slipped through the cracks - thanks for noticing. I'll just go ahead and land it.
Reporter | ||
Comment 11•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/020937bcd6a0
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/020937bcd6a0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3 C2/1.4 S2(17jan)
You need to log in
before you can comment on or make changes to this bug.
Description
•