diff options
author | Nicolas Dossou-gbete <dgn@chromium.org> | 2015-12-18 14:29:28 +0000 |
---|---|---|
committer | Nicolas Dossou-gbete <dgn@chromium.org> | 2015-12-18 14:30:58 +0000 |
commit | a6418335744aa31db28d17257daefac1bf3c23ac (patch) | |
tree | 52357a0ea068ba99d7bdacd6db99a649af715460 | |
parent | efe8f6082f8e9bb4f05cbc98be34ddd89cf7cc7b (diff) | |
download | chromium_src-a6418335744aa31db28d17257daefac1bf3c23ac.zip chromium_src-a6418335744aa31db28d17257daefac1bf3c23ac.tar.gz chromium_src-a6418335744aa31db28d17257daefac1bf3c23ac.tar.bz2 |
fix to run Webview Policy initialization on the UI thread
Additional M47/M48 only fix
BUG=568602
R=torne@chromium.org
TBR=atwilson@chromium.org
Review URL: https://codereview.chromium.org/1538643003 .
Cr-Commit-Position: refs/branch-heads/2526@{#537}
Cr-Branched-From: cb947c0153db0ec02a8abbcb3ca086d88bf6006f-refs/heads/master@{#352221}
-rw-r--r-- | components/policy/android/java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/policy/android/java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java b/components/policy/android/java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java index 3fc2732..bf77ebf 100644 --- a/components/policy/android/java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java +++ b/components/policy/android/java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java @@ -85,7 +85,12 @@ public abstract class AbstractAppRestrictionsProvider extends PolicyProvider { public void refresh() { final Bundle cachedResult = getCachedPolicies(); if (cachedResult != null) { - notifySettingsAvailable(cachedResult); + ThreadUtils.runOnUiThread(new Runnable() { + @Override + public void run() { + notifySettingsAvailable(cachedResult); + } + }); } mExecutor.execute(new Runnable() { |