localStorage: Aggressively flush to disk for Android WebView.
commita1f8d834ce9fc89e5e409e08bb00173c37854329
authorcmumford <cmumford@chromium.org>
Sun, 10 May 2015 16:44:13 +0000 (10 09:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Sun, 10 May 2015 16:45:27 +0000 (10 16:45 +0000)
treeae54fc3b6dbc2a36c10cb1c755e858a4a7d10ac0
parentf2d15970289120d1b629168d9c46245a1438f10f
localStorage: Aggressively flush to disk for Android WebView.

Android WebView does not save data during shutdown like Chrome does.
Adding an --enable-aggressive-domstorage-flushing flag to return the
DOM Storage implementation to the prior implementation which had a 1
sec. timer to flush the commit queue.

BUG=479767

Review URL: https://codereview.chromium.org/1129233003

Cr-Commit-Position: refs/heads/master@{#329070}
android_webview/lib/main/aw_main_delegate.cc
content/browser/browser_main_loop.cc
content/browser/dom_storage/dom_storage_area.cc
content/browser/dom_storage/dom_storage_area.h
content/public/common/content_switches.cc
content/public/common/content_switches.h