Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Issue 17071007: Adds a MemoryPressureListener to sql::Connection. (Closed)

Created:
7 years, 6 months ago by rmcilroy
Modified:
7 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds a MemoryPressureListener to sql::Connection. This will allow SQLite database to reduce their page cache memory on systems which provide a MemoryPressureListener signal. BUG=243769 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212374

Patch Set 1 #

Patch Set 2 : Moving memory listener to HistoryBackend #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Address Scotts comments #

Total comments: 4

Patch Set 5 : Fix final nits. #

Total comments: 4

Patch Set 6 : Fix Brett's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -0 lines) Patch
M chrome/browser/history/archived_database.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/archived_database.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/history/history_database.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/history_database.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/thumbnail_database.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/history/thumbnail_database.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M sql/connection.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
rmcilroy
As an alternative to CL:17035006 - please let me know if you think this a ...
7 years, 6 months ago (2013-06-14 17:21:30 UTC) #1
Scott Hess - ex-Googler
I don't like dropping the backends (your comment from other CL), but I'm uncomfortable with ...
7 years, 6 months ago (2013-06-14 18:01:23 UTC) #2
Scott Hess - ex-Googler
Also, thread safety.
7 years, 6 months ago (2013-06-14 18:03:33 UTC) #3
bulach
I think we're all in agreement here :) summarizing: 1. Higher-up layers would have their ...
7 years, 6 months ago (2013-06-17 10:23:27 UTC) #4
rmcilroy
On 2013/06/17 10:23:27, bulach wrote: > I think we're all in agreement here :) > ...
7 years, 6 months ago (2013-06-17 11:48:57 UTC) #5
Scott Hess - ex-Googler
On 2013/06/17 10:23:27, bulach wrote: > summarizing: > 1. Higher-up layers would have their own ...
7 years, 6 months ago (2013-06-17 20:13:24 UTC) #6
rmcilroy
I'm pretty sure threading is fine here - HistoryBackend::Init() has a comment saying it must ...
7 years, 6 months ago (2013-06-18 18:22:53 UTC) #7
rmcilroy
ping?
7 years, 5 months ago (2013-06-28 18:43:11 UTC) #8
Scott Hess - ex-Googler
LGTM with two nits. https://codereview.chromium.org/17071007/diff/16001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/17071007/diff/16001/sql/connection.cc#newcode227 sql/connection.cc:227: TrimMemory(false); I think that TrimMemory() ...
7 years, 5 months ago (2013-06-28 20:21:57 UTC) #9
Scott Hess - ex-Googler
On 2013/06/28 20:21:57, shess wrote: > LGTM with two nits. > > https://codereview.chromium.org/17071007/diff/16001/sql/connection.cc > File ...
7 years, 5 months ago (2013-06-28 22:07:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17071007/22001
7 years, 5 months ago (2013-07-01 09:54:22 UTC) #11
rmcilroy
https://codereview.chromium.org/17071007/diff/16001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/17071007/diff/16001/sql/connection.cc#newcode227 sql/connection.cc:227: TrimMemory(false); On 2013/06/28 20:21:57, shess wrote: > I think ...
7 years, 5 months ago (2013-07-01 09:56:39 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13215
7 years, 5 months ago (2013-07-01 10:09:41 UTC) #13
rmcilroy
brettw: could you LGTM for history owners please.
7 years, 5 months ago (2013-07-01 11:19:44 UTC) #14
brettw
LGTM with style nits. https://codereview.chromium.org/17071007/diff/22001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/17071007/diff/22001/chrome/browser/history/history_backend.cc#newcode774 chrome/browser/history/history_backend.cc:774: base::MemoryPressureListener::MEMORY_PRESSURE_CRITICAL; Nit: need one more ...
7 years, 5 months ago (2013-07-17 17:44:54 UTC) #15
rmcilroy
Thanks Brett. https://codereview.chromium.org/17071007/diff/22001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/17071007/diff/22001/chrome/browser/history/history_backend.cc#newcode774 chrome/browser/history/history_backend.cc:774: base::MemoryPressureListener::MEMORY_PRESSURE_CRITICAL; On 2013/07/17 17:44:55, brettw wrote: > ...
7 years, 5 months ago (2013-07-18 11:15:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17071007/36001
7 years, 5 months ago (2013-07-18 11:15:40 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-18 15:34:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17071007/36001
7 years, 5 months ago (2013-07-18 15:53:32 UTC) #19
commit-bot: I haz the power
7 years, 5 months ago (2013-07-18 18:49:16 UTC) #20
Message was sent while issue was closed.
Change committed as 212374

Powered by Google App Engine
This is Rietveld 408576698