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

Issue 2359753002: Fix the IllegalStateException in OtherFormsOfHistoryDialogFragment.show() (Closed)

Created:
4 years, 3 months ago by msramek
Modified:
4 years, 3 months ago
Reviewers:
Finnur, Theresa
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the IllegalStateException in OtherFormsOfHistoryDialogFragment.show() OtherFormsOfHistoryDialogFragment.show() can throw an IllegalStateException if it's called after the Activity's onSaveInstanceState(). New fragments cannot be added after the Acitvity state was saved, as these changes to the state would be lost. This CL fixes the problem by only attempting to show the fragment if the Activity is not in a background state. BUG=648515 Committed: https://crrev.com/dbdc108bed93786d012ce905a38535e81f52e80d Cr-Commit-Position: refs/heads/master@{#420638}

Patch Set 1 #

Total comments: 2

Patch Set 2 : MultiWindowUtils.isActivityVisible #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtils.java View 1 1 chunk +5 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java View 1 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
msramek
Hi Finnur! Somehow I never noticed that we have preferences/ owners after Newt left, perhaps ...
4 years, 3 months ago (2016-09-21 12:14:20 UTC) #4
Finnur
I don't know... twellington@ should probably be the primary candidate; she works on Chrome Android ...
4 years, 3 months ago (2016-09-21 13:10:47 UTC) #5
msramek
Thanks! Then let me ask +Theresa as well - does this LGTY or do you ...
4 years, 3 months ago (2016-09-21 13:33:55 UTC) #9
Theresa
https://codereview.chromium.org/2359753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java (right): https://codereview.chromium.org/2359753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java#newcode335 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java:335: // the |mPaused| state of this fragment to determine ...
4 years, 3 months ago (2016-09-21 17:08:37 UTC) #10
msramek
Thanks for the advice, Theresa! PTAL :) https://codereview.chromium.org/2359753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java (right): https://codereview.chromium.org/2359753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java#newcode335 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java:335: // the ...
4 years, 3 months ago (2016-09-23 13:08:08 UTC) #16
Theresa
lgtm
4 years, 3 months ago (2016-09-23 16:54:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359753002/40001
4 years, 3 months ago (2016-09-23 16:58:25 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-09-23 17:04:55 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 17:06:35 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dbdc108bed93786d012ce905a38535e81f52e80d
Cr-Commit-Position: refs/heads/master@{#420638}

Powered by Google App Engine
This is Rietveld 408576698