aw: Add allow wait for form database

Desktop / Chromium - boliu [chromium.org] - 13 April 2017 20:58 EDT

Follow up fix to refs/heads/master@{#463849}. FormDatabase is similar to CookieManager. It's thread-safe singleton class that needs answers synchronously from the database thread in the public webview API.

Missed this in the first round because there are no instrumentation tests covering this, so add a smoke test.

BUG=711338

Review-Url: https://codereview.chromium.org/2817923003 Cr-Commit-Position: refs/heads/master@{#464637}

40b2b2d aw: Add allow wait for form database
.../browser/aw_form_database_service.cc | 6 +++++-
.../android_webview/test/AwFormDatabaseTest.java | 23 ++++++++++++++++++++++
android_webview/test/BUILD.gn | 1 +
base/threading/thread_restrictions.h | 2 ++
4 files changed, 31 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share