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

Issue 1464313010: Fix strict mode violation on document mode initialization. (Closed)

Created:
5 years ago by hartmanng
Modified:
5 years ago
CC:
chromium-reviews, Peter Wen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix strict mode violation on document mode initialization. Loading shared prefs requires an async disk access. If it doesn't finish in time, it can cause the UI thread to block, violating strict mode. This patch pre-loads the document-mode shared prefs, as we already do for the main Chrome default shared prefs, to ensure that it's ready before we need it. BUG=543201 Committed: https://crrev.com/f70d99783581291fcac5c603c7862d360caa7b3d Cr-Commit-Position: refs/heads/master@{#362031}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java View 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java View 1 chunk +8 lines, -0 lines 1 comment Download

Messages

Total messages: 15 (7 generated)
hartmanng
David, please take a look. https://codereview.chromium.org/1464313010/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java (right): https://codereview.chromium.org/1464313010/diff/1/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java#newcode142 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java:142: public static void warmUpSharedPrefs(Context ...
5 years ago (2015-11-26 21:51:13 UTC) #3
David Trainor- moved to gerrit
lgtm
5 years ago (2015-11-27 16:17:51 UTC) #4
hartmanng
Thanks!
5 years ago (2015-11-27 16:19:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464313010/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464313010/1
5 years ago (2015-11-27 16:20:17 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/102279)
5 years ago (2015-11-27 18:05:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464313010/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464313010/1
5 years ago (2015-11-27 18:26:15 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-27 19:20:38 UTC) #13
commit-bot: I haz the power
5 years ago (2015-11-27 19:21:18 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f70d99783581291fcac5c603c7862d360caa7b3d
Cr-Commit-Position: refs/heads/master@{#362031}

Powered by Google App Engine
This is Rietveld 408576698