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

Issue 2794063004: Use commitAllowingStateLoss() for showing sync confirmation dialogs (Closed)

Created:
3 years, 8 months ago by bsazonov
Modified:
3 years, 8 months ago
Reviewers:
nyquist
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use commitAllowingStateLoss() for showing sync confirmation dialogs This CL fixes crash that is caused by asynchronous callback trying to show dialog after activity was paused. Android framework doesn't allow committing FragmentTransactions after call to onSaveInstanceState, because such transactions can lead to state loss if activity is killed and recreated from the earlier saved state. This CL uses commitAllowingStateLoss() to avoid exception and crash. Possible state loss is not important in this case because of crbug.com/708156. BUG=672251 Review-Url: https://codereview.chromium.org/2794063004 Cr-Commit-Position: refs/heads/master@{#462814} Committed: https://chromium.googlesource.com/chromium/src/+/7b9f72c29d6da03e50bc77c127f76a6a2d38477e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/signin/ConfirmImportSyncDataDialog.java View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/signin/ConfirmManagedSyncDataDialog.java View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 12 (8 generated)
bsazonov
Tommy, please take a look.
3 years, 8 months ago (2017-04-04 16:46:59 UTC) #6
nyquist
lgtm
3 years, 8 months ago (2017-04-06 23:22:01 UTC) #7
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/2794063004/1
3 years, 8 months ago (2017-04-07 08:24:48 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 09:02:43 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7b9f72c29d6da03e50bc77c127f7...

Powered by Google App Engine
This is Rietveld 408576698