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

Issue 1129233003: localStorage: Aggressively flush to disk for Android WebView. (Closed)

Created:
5 years, 7 months ago by cmumford
Modified:
5 years, 5 months ago
Reviewers:
michaeln, jam, davidben, nasko, boliu
CC:
chromium-reviews, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@local-storage-flush-android
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/a1f8d834ce9fc89e5e409e08bb00173c37854329 Cr-Commit-Position: refs/heads/master@{#329070}

Patch Set 1 #

Patch Set 2 : Only logging LocalStorage.CommitDelay when not aggressive #

Total comments: 6

Patch Set 3 : Tweak to comments and function early return. #

Total comments: 1

Patch Set 4 : Added trace event. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -0 lines) Patch
M android_webview/lib/main/aw_main_delegate.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/dom_storage/dom_storage_area.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/dom_storage/dom_storage_area.cc View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
cmumford
michaeln@ for content/browser/dom_storage/* jam@ for content/browser/browser_main_loop.cc benm@ for android_webview/* davidben@ for content/public/common/* Wow - six ...
5 years, 7 months ago (2015-05-07 21:31:57 UTC) #2
boliu
On 2015/05/07 21:31:57, cmumford wrote: > michaeln@ for content/browser/dom_storage/* > jam@ for content/browser/browser_main_loop.cc > benm@ ...
5 years, 7 months ago (2015-05-07 21:36:04 UTC) #3
michaeln
lgtm https://codereview.chromium.org/1129233003/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/1129233003/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode94 android_webview/lib/main/aw_main_delegate.cc:94: // for Chrome to aggressively persist DOM Storage ...
5 years, 7 months ago (2015-05-07 23:19:03 UTC) #4
cmumford
michaeln's issues addressed. Still waiting on reviews for these files: content/public/common/content_switches.(cc|h) content/browser/browser_main_loop.cc https://codereview.chromium.org/1129233003/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc ...
5 years, 7 months ago (2015-05-08 16:02:48 UTC) #5
cmumford
nasko@ : I'd like to finish today, do you have time to review three files? ...
5 years, 7 months ago (2015-05-08 21:08:18 UTC) #7
nasko
https://codereview.chromium.org/1129233003/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1129233003/diff/40001/content/browser/browser_main_loop.cc#newcode589 content/browser/browser_main_loop.cc:589: DOMStorageArea::EnableAggressiveCommitDelay(); I wonder if there is a better place ...
5 years, 7 months ago (2015-05-08 21:19:00 UTC) #8
cmumford
Thx nasko. I added the trace. I'm unsure of the message - it's not really ...
5 years, 7 months ago (2015-05-08 21:25:46 UTC) #9
nasko
I couldn't find any better place for this to live. nick@ had a very good ...
5 years, 7 months ago (2015-05-08 22:42:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129233003/60001
5 years, 7 months ago (2015-05-08 22:59:22 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_rel on ...
5 years, 7 months ago (2015-05-09 03:29:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129233003/60001
5 years, 7 months ago (2015-05-09 14:46:30 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_rel on ...
5 years, 7 months ago (2015-05-09 18:52:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129233003/60001
5 years, 7 months ago (2015-05-09 20:46:29 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-10 16:44:22 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-10 16:46:06 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a1f8d834ce9fc89e5e409e08bb00173c37854329
Cr-Commit-Position: refs/heads/master@{#329070}

Powered by Google App Engine
This is Rietveld 408576698