Closed
Bug 1231655
Opened 9 years ago
Closed 8 years ago
Remove GeckoApp.showButtonToast()
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox48 fixed)
RESOLVED
FIXED
Firefox 48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: sebastian, Assigned: k.krish, Mentored)
References
Details
(Whiteboard: [good first bug][lang=java])
Attachments
(1 file, 6 obsolete files)
13.76 KB,
patch
|
sebastian
:
review+
|
Details | Diff | Splinter Review |
GeckoApp.showButtonToast() is not used anymore and we can remove it now: https://dxr.mozilla.org/mozilla-central/rev/b40ba117fa757861c9caa660ae989122718b494b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java#901
Comment 1•9 years ago
|
||
Hello Sebastian! Could you assign this to me? Thanks!
Comment 2•9 years ago
|
||
I have removed the unnecessary code and I have attached a patch.
Attachment #8697301 -
Flags: review?(s.kaspari)
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → roliusz
Comment 3•9 years ago
|
||
(In reply to Roland Demeter from comment #2) > Created attachment 8697301 [details] [diff] [review] > bug1231655.diff > > I have removed the unnecessary code and I have attached a patch. You could probably also remove the import for ButtonToast, getButtonToast() and the ButtonToast.java file.
Comment 4•9 years ago
|
||
Removed all instances of ButtonToast.
Attachment #8697317 -
Flags: review?(alex_johnson24)
Comment 5•9 years ago
|
||
I have attached a patch to remove everything mentioned in the previous comment.
Comment 6•9 years ago
|
||
Comment on attachment 8697317 [details] [diff] [review] All instances removed Review of attachment 8697317 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! :)
Attachment #8697317 -
Flags: review?(alex_johnson24) → review+
Comment 7•9 years ago
|
||
Comment on attachment 8697317 [details] [diff] [review] All instances removed Review of attachment 8697317 [details] [diff] [review]: ----------------------------------------------------------------- Actually, could you rebase this on top of Bug 1107811?
Attachment #8697317 -
Flags: review+ → review-
Comment 8•9 years ago
|
||
To do this, first do hg log and copy the changeset id for your commit, then: hg pull hg rebase -s your-changeset-id -d tip
Comment 9•9 years ago
|
||
I have made the changes you requested, I rant into a few errors but I think I got there eventually! Thank you!
Attachment #8697563 -
Flags: review?(alex_johnson24)
Comment 10•9 years ago
|
||
Comment on attachment 8697563 [details] [diff] [review] bug1231655.diff Review of attachment 8697563 [details] [diff] [review]: ----------------------------------------------------------------- Look good to me! But, it looks like the removal of ButtonToast.java is missing from this patch. If you could remove it and attach it as a separate patch, I could r+ it too.
Attachment #8697563 -
Flags: review?(alex_johnson24) → review+
Comment 11•9 years ago
|
||
(In reply to Alex Johnson(:alex_johnson) from comment #10) > Comment on attachment 8697563 [details] [diff] [review] > bug1231655.diff > > Review of attachment 8697563 [details] [diff] [review]: > ----------------------------------------------------------------- > > Look good to me! But, it looks like the removal of ButtonToast.java is > missing from this patch. If you could remove it and attach it as a separate > patch, I could r+ it too. You might also need to remove ButtonToast from moz.build and BrowserApp.java. Here are all the instances of ButtonToast in the project: https://dxr.mozilla.org/mozilla-central/search?q=buttontoast&redirect=false&case=false. You have removed the one's from GeckoApp, we'll also need to get rid of the rest.
Comment 12•9 years ago
|
||
We'll actually do this as another bug. We'll just focus on GeckoApp here (the title of the bug).
Blocks: 1231958
Comment 13•9 years ago
|
||
Hello Alex! I have removed all instances and I have attached a new patch. I couldn't find any ButtonToast instances in my GeckoApp.jave file.
Attachment #8697581 -
Flags: review?(alex_johnson24)
Comment 14•9 years ago
|
||
Comment on attachment 8697581 [details] [diff] [review] Bug1231655.diff Review of attachment 8697581 [details] [diff] [review]: ----------------------------------------------------------------- Could you submit this to Bug 1231958? We'll just focus on GeckoApp here.
Attachment #8697581 -
Flags: review?(alex_johnson24) → review-
Updated•9 years ago
|
Mentor: alex_johnson24
Comment 15•9 years ago
|
||
Comment on attachment 8697563 [details] [diff] [review] bug1231655.diff Review of attachment 8697563 [details] [diff] [review]: ----------------------------------------------------------------- Roland, go ahead and set the keyword to "checkin-needed".
Attachment #8697563 -
Flags: checkin+
Comment 16•9 years ago
|
||
Comment on attachment 8697563 [details] [diff] [review] bug1231655.diff Review of attachment 8697563 [details] [diff] [review]: ----------------------------------------------------------------- Set the "checkin-needed" after this succeeds: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1375117708cb Let me know if you need help interpreting the results. Thanks for the help! :)
Comment 17•9 years ago
|
||
Hannah, sorry we couldn't use your patch. Roland was already assigned to the bug. But here's another bug you can work on if you're interested: Bug 1229105.
Flags: needinfo?(calowh)
Comment 18•9 years ago
|
||
Comment on attachment 8697581 [details] [diff] [review] Bug1231655.diff Review of attachment 8697581 [details] [diff] [review]: ----------------------------------------------------------------- Actually, build fails if we don't remove the instances of ButtonToast from BrowserApp. So, we're gonna have to land them both together. Sorry! Could you also delete mobile/android/base/java/org/mozilla/gecko/widget/ButtonToast.java?
Attachment #8697581 -
Flags: review- → review+
Updated•9 years ago
|
Flags: needinfo?(calowh)
Updated•9 years ago
|
Attachment #8697581 -
Flags: checkin+
Updated•9 years ago
|
Attachment #8697301 -
Attachment is obsolete: true
Attachment #8697301 -
Flags: review?(s.kaspari)
Updated•9 years ago
|
Attachment #8697317 -
Attachment is obsolete: true
Updated•9 years ago
|
Attachment #8697319 -
Attachment is obsolete: true
Updated•9 years ago
|
Attachment #8697563 -
Flags: checkin+
Updated•9 years ago
|
Attachment #8697581 -
Flags: checkin+
Updated•9 years ago
|
Keywords: checkin-needed
Comment 19•9 years ago
|
||
(In reply to Alex Johnson (:alex_johnson) from comment #18) > Comment on attachment 8697581 [details] [diff] [review] > Bug1231655.diff > > Review of attachment 8697581 [details] [diff] [review]: > ----------------------------------------------------------------- > > Actually, build fails if we don't remove the instances of ButtonToast from > BrowserApp. So, we're gonna have to land them both together. Sorry! > Could you also delete > mobile/android/base/java/org/mozilla/gecko/widget/ButtonToast.java? Hello Alex! In my library the file does not exist. Is there a way to combine them all together as a patch again, so I could submit a whole patch with all the instances removed? Thanks, Roland
Reporter | ||
Comment 20•9 years ago
|
||
Removing "checkin-needed". It seems like this series of patches is not ready yet? Having a single patch for all changes here is a good idea. I usually use "hg rebase --collapse" for that. histedit is a mercurial extension that can do that too. Please flag me for review of the final patch.
Keywords: checkin-needed
Comment 21•9 years ago
|
||
(In reply to Roland Demeter from comment #19) > (In reply to Alex Johnson (:alex_johnson) from comment #18) > > Comment on attachment 8697581 [details] [diff] [review] > > Bug1231655.diff > > > > Review of attachment 8697581 [details] [diff] [review]: > > ----------------------------------------------------------------- > > > > Actually, build fails if we don't remove the instances of ButtonToast from > > BrowserApp. So, we're gonna have to land them both together. Sorry! > > Could you also delete > > mobile/android/base/java/org/mozilla/gecko/widget/ButtonToast.java? > > Hello Alex! > > In my library the file does not exist. Is there a way to combine them all > together as a patch again, so I could submit a whole patch with all the > instances removed? > > Thanks, > Roland You could try and find the commit where you removed that file and rebase it on top of the latest patch you want to submit. And then collapse them into one commit like sebastian mentioned. Also, don't forget to flag him for the final review. Thanks for your help! :)
Reporter | ||
Comment 23•8 years ago
|
||
@Roland: Are you still interested in working on this?
Flags: needinfo?(roliusz)
Assignee | ||
Comment 24•8 years ago
|
||
I would like to take a look into this bug and fix it. Can I move forward ?
Flags: needinfo?(s.kaspari)
Reporter | ||
Comment 25•8 years ago
|
||
(In reply to k.krish from comment #24) > I would like to take a look into this bug and fix it. > Can I move forward ? Okay. As soon as you'll attach a first patch I'll assign the bug to you. :)
Assignee: roliusz → nobody
Flags: needinfo?(s.kaspari)
Flags: needinfo?(roliusz)
Reporter | ||
Updated•8 years ago
|
Attachment #8697563 -
Attachment is obsolete: true
Reporter | ||
Updated•8 years ago
|
Attachment #8697581 -
Attachment is obsolete: true
Reporter | ||
Updated•8 years ago
|
Attachment #8728379 -
Flags: review+ → review?(s.kaspari)
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → k.krish
Reporter | ||
Comment 27•8 years ago
|
||
Comment on attachment 8728379 [details] [diff] [review] Bug1231655.diff Review of attachment 8728379 [details] [diff] [review]: ----------------------------------------------------------------- This patch is looking good. Let's just remove all those unnecessary import changes. If you are using patch queues then you can update your patch with "hg qrefresh". If you use bookmarks or just plain commits then you can use "hg commit --amend" to update your last commit. After that upload the new patch and flag me for review (select review ? and then add me as reviewer). ::: mobile/android/base/java/org/mozilla/gecko/GeckoApp.java @@ +62,5 @@ > +import android.widget.Toast; > + > +import org.json.JSONArray; > +import org.json.JSONException; > +import org.json.JSONObject; There are a lot of import changes here (probably your IDE tried to be "helpful"). Please update your patch to not include all those changes.
Attachment #8728379 -
Flags: review?(s.kaspari) → feedback+
Assignee | ||
Comment 28•8 years ago
|
||
I have changed the patch as required. Please take a look. Thanks :)
Attachment #8728439 -
Flags: review?(s.kaspari)
Reporter | ||
Comment 29•8 years ago
|
||
Comment on attachment 8728379 [details] [diff] [review] Bug1231655.diff Marking the old patch as obsolete.
Attachment #8728379 -
Attachment is obsolete: true
Reporter | ||
Comment 30•8 years ago
|
||
Comment on attachment 8728439 [details] [diff] [review] Bug1231655.diff Review of attachment 8728439 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. Thank you! :)
Attachment #8728439 -
Flags: review?(s.kaspari) → review+
Reporter | ||
Comment 31•8 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/6009eb63149d0dcacfa659b6d84a6f1eaa898c06 Bug 1231655 - Remove GeckoApp.showButtonToast(). r=sebastian
Comment 32•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6009eb63149d
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•