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

Issue 319553006: Fix window leaks related to the suggestion popup. (Closed)

Created:
6 years, 6 months ago by Sungmann Cho
Modified:
6 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix window leaks related to the suggestion popup. Currently, Chrome Shell leaks the suggestion popup window when terminating. We need to handle it as the clank does. android.view.WindowLeaked: Activity org.chromium.chrome.shell.ChromeShellActivity has leaked window android.widget.PopupWindow$PopupViewContainer that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:348) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:248) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) at android.widget.PopupWindow.invokePopup(PopupWindow.java:1019) at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:925) at android.widget.ListPopupWindow.show(ListPopupWindow.java:625) at org.chromium.chrome.shell.omnibox.SuggestionPopup.onSuggestionsReceived(SuggestionPopup.java:126) at org.chromium.chrome.browser.omnibox.AutocompleteController.onSuggestionsReceived(AutocompleteController.java:175) at org.chromium.chrome.browser.omnibox.AutocompleteController.nativeStart(Native Method) at org.chromium.chrome.browser.omnibox.AutocompleteController.start(AutocompleteController.java:79) at org.chromium.chrome.shell.omnibox.SuggestionPopup$4.run(SuggestionPopup.java:148) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) BUG=380224 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275379

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add javadoc comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/omnibox/SuggestionPopup.java View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Sungmann Cho
Please take a look. Thanks!
6 years, 6 months ago (2014-06-05 12:14:49 UTC) #1
aurimas (slooooooooow)
lgtm after nits https://codereview.chromium.org/319553006/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java File chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java (right): https://codereview.chromium.org/319553006/diff/1/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java#newcode81 chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellToolbar.java:81: public void hideSuggestions() { Please add ...
6 years, 6 months ago (2014-06-05 16:24:09 UTC) #2
Ted C
owners lgtm w/ aurimas's comments addressed
6 years, 6 months ago (2014-06-05 18:44:19 UTC) #3
Sungmann Cho
aurimas@ Could you please take a look at the javadoc comments and let me know ...
6 years, 6 months ago (2014-06-05 23:00:11 UTC) #4
aurimas (slooooooooow)
On 2014/06/05 23:00:11, Sungmann Cho wrote: > aurimas@ Could you please take a look at ...
6 years, 6 months ago (2014-06-05 23:03:44 UTC) #5
Sungmann Cho
The CQ bit was checked by sungmann.cho@navercorp.com
6 years, 6 months ago (2014-06-05 23:14:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sungmann.cho@navercorp.com/319553006/20001
6 years, 6 months ago (2014-06-05 23:15:36 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 10:35:22 UTC) #8
Message was sent while issue was closed.
Change committed as 275379

Powered by Google App Engine
This is Rietveld 408576698