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

Issue 14771009: Have SimpleCache index listen to android activity status notifications. (Closed)

Created:
7 years, 7 months ago by gavinp
Modified:
7 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, pliard, pasko-google - do not use
Base URL:
https://chromium.googlesource.com/chromium/src.git@1-digit
Visibility:
Public.

Description

Have SimpleCache index listen to android activity status notifications. Based on earlier work by felipeg, together with some base/android changes from digit, we now respond to activity status notifications by greatly increasing the flush latency. This should ensure that we almost always have a fresh index on android at startup. R=felipeg@chromium.org, pliard@chromium.org BUG=233536 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198290

Patch Set 1 : new patchset #

Patch Set 2 : weak #

Patch Set 3 : naming #

Patch Set 4 : get it right #

Total comments: 10

Patch Set 5 : remediation #

Patch Set 6 : base::Bind #

Patch Set 7 : rebase, clear to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -20 lines) Patch
M net/disk_cache/simple/simple_index.h View 1 2 3 4 3 chunks +16 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 5 7 chunks +31 lines, -20 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
felipeg
https://codereview.chromium.org/14771009/diff/8005/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://codereview.chromium.org/14771009/diff/8005/net/disk_cache/simple/simple_index.cc#newcode572 net/disk_cache/simple/simple_index.cc:572: } else if (state == base::android::ACTIVITY_STATE_STOPPED) { I know ...
7 years, 7 months ago (2013-05-03 10:03:00 UTC) #1
Philippe
LGTM but to make this work we will need to add an extra call to ...
7 years, 7 months ago (2013-05-03 10:11:47 UTC) #2
Philippe
On 2013/05/03 10:11:47, Philippe wrote: > LGTM but to make this work we will need ...
7 years, 7 months ago (2013-05-03 10:24:25 UTC) #3
pasko-google - do not use
https://codereview.chromium.org/14771009/diff/8005/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://codereview.chromium.org/14771009/diff/8005/net/disk_cache/simple/simple_index.cc#newcode161 net/disk_cache/simple/simple_index.cc:161: base::Bind(&SimpleIndex::OnActivityStateChange, AsWeakPtr())), this operation feels a bit too non-trivial ...
7 years, 7 months ago (2013-05-03 10:30:54 UTC) #4
gavinp
https://chromiumcodereview.appspot.com/14771009/diff/8005/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://chromiumcodereview.appspot.com/14771009/diff/8005/net/disk_cache/simple/simple_index.cc#newcode161 net/disk_cache/simple/simple_index.cc:161: base::Bind(&SimpleIndex::OnActivityStateChange, AsWeakPtr())), On 2013/05/03 10:30:54, pasko wrote: > this ...
7 years, 7 months ago (2013-05-03 12:16:53 UTC) #5
gavinp
This issue is now waiting on https://codereview.chromium.org/14767011 , and should go in shortly after that. ...
7 years, 7 months ago (2013-05-03 14:25:17 UTC) #6
felipeg
On 2013/05/03 14:25:17, gavinp wrote: > This issue is now waiting on https://codereview.chromium.org/14767011 , and ...
7 years, 7 months ago (2013-05-03 18:02:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/14771009/16001
7 years, 7 months ago (2013-05-04 04:27:29 UTC) #8
gavinp
Committed patchset #7 manually as r198290 (presubmit successful).
7 years, 7 months ago (2013-05-04 05:00:29 UTC) #9
cbentzel
7 years, 6 months ago (2013-05-31 19:55:15 UTC) #10
Message was sent while issue was closed.
I wonder if it would be cleaner to have SimpleIndex accessors to specify flush
intervals and have a separate file which does the Android-specific event
listening. 

[And yes, this landed a while ago]...

Powered by Google App Engine
This is Rietveld 408576698