diff options
author | cmumford <cmumford@chromium.org> | 2015-05-10 09:44:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-10 16:45:27 +0000 |
commit | a1f8d834ce9fc89e5e409e08bb00173c37854329 (patch) | |
tree | ae54fc3b6dbc2a36c10cb1c755e858a4a7d10ac0 /android_webview/lib | |
parent | f2d15970289120d1b629168d9c46245a1438f10f (diff) | |
download | chromium_src-a1f8d834ce9fc89e5e409e08bb00173c37854329.zip chromium_src-a1f8d834ce9fc89e5e409e08bb00173c37854329.tar.gz chromium_src-a1f8d834ce9fc89e5e409e08bb00173c37854329.tar.bz2 |
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}
Diffstat (limited to 'android_webview/lib')
-rw-r--r-- | android_webview/lib/main/aw_main_delegate.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc index d9cbab8..defb379 100644 --- a/android_webview/lib/main/aw_main_delegate.cc +++ b/android_webview/lib/main/aw_main_delegate.cc @@ -90,6 +90,11 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) { // WebView does not yet support screen orientation locking. cl->AppendSwitch(switches::kDisableScreenOrientationLock); + // WebView does not (yet) save Chromium data during shutdown, so add setting + // for Chrome to aggressively persist DOM Storage to minimize data loss. + // http://crbug.com/479767 + cl->AppendSwitch(switches::kEnableAggressiveDOMStorageFlushing); + // This is needed to be able to mmap the V8 snapshot and ICU data file // directly from the WebView .apk. // This needs to be here so that it gets to run before the code in |