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

Issue 7222023: Forward handling of low-mem message to the content renderer client. Add APIs to handle this case. (Closed)

Created:
9 years, 6 months ago by Greg Billock
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Forward handling of low-mem message to the content renderer client. Add APIs to handle this case. Found from Coverity CID=16390 R=jam@chromium.org BUG= TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95896

Patch Set 1 #

Total comments: 4

Patch Set 2 : Lint fixes #

Patch Set 3 : Change to use notification service. #

Patch Set 4 : Fix constructor #

Total comments: 6

Patch Set 5 : Merge. #

Patch Set 6 : Get rid of notification. Forward call from RPO to client. #

Total comments: 8

Patch Set 7 : Fix some nits, remove test code. #

Patch Set 8 : Don't own SpellCheckProvider in renderer client. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -10 lines) Patch
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.h View 1 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/spellchecker/spellcheck.cc View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Greg Billock
9 years, 6 months ago (2011-06-21 22:51:09 UTC) #1
jam
lgtm, thanks http://codereview.chromium.org/7222023/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/7222023/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode586 chrome/renderer/chrome_content_renderer_client.cc:586: if (spellcheck_.get()) { nit: this file doesn't ...
9 years, 6 months ago (2011-06-21 22:59:39 UTC) #2
jam
btw, no need for empty BUG= TEST= lines. only need to add one if you ...
9 years, 6 months ago (2011-06-21 23:02:21 UTC) #3
Greg Billock
Thanks. Is there a way to trigger this lowmem condition artificially to test and make ...
9 years, 6 months ago (2011-06-22 15:58:35 UTC) #4
jam
(still lgtm) On 2011/06/22 15:58:35, Greg Billock wrote: > Thanks. Is there a way to ...
9 years, 6 months ago (2011-06-23 18:36:53 UTC) #5
Greg Billock
I was testing this out. It turns out the ChromeRenderProcessObserver was swallowing the message, so ...
9 years, 5 months ago (2011-07-21 00:17:32 UTC) #6
jam
On 2011/07/21 00:17:32, Greg Billock wrote: > I was testing this out. It turns out ...
9 years, 5 months ago (2011-07-21 06:43:16 UTC) #7
jam
http://codereview.chromium.org/7222023/diff/13001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/7222023/diff/13001/chrome/browser/ui/browser.cc#newcode1938 chrome/browser/ui/browser.cc:1938: nit: extra line http://codereview.chromium.org/7222023/diff/13001/content/renderer/render_thread.cc File content/renderer/render_thread.cc (right): http://codereview.chromium.org/7222023/diff/13001/content/renderer/render_thread.cc#newcode24 content/renderer/render_thread.cc:24: ...
9 years, 5 months ago (2011-07-21 16:35:27 UTC) #8
Greg Billock
On Wed, Jul 20, 2011 at 11:43 PM, <jam@chromium.org> wrote: > On 2011/07/21 00:17:32, Greg ...
9 years, 5 months ago (2011-07-21 17:26:48 UTC) #9
Greg Billock
OK, I've updated this. John and I talked about this on IM. The RenderThread is ...
9 years, 5 months ago (2011-07-21 19:10:01 UTC) #10
jam
lgtm with nits http://codereview.chromium.org/7222023/diff/13001/content/renderer/render_thread.cc File content/renderer/render_thread.cc (right): http://codereview.chromium.org/7222023/diff/13001/content/renderer/render_thread.cc#newcode24 content/renderer/render_thread.cc:24: #include "chrome/common/render_messages.h" On 2011/07/21 19:10:01, Greg ...
9 years, 5 months ago (2011-07-22 16:31:50 UTC) #11
Greg Billock
http://codereview.chromium.org/7222023/diff/13001/content/renderer/render_thread.cc File content/renderer/render_thread.cc (right): http://codereview.chromium.org/7222023/diff/13001/content/renderer/render_thread.cc#newcode24 content/renderer/render_thread.cc:24: #include "chrome/common/render_messages.h" cool. I did see the check_deps fail ...
9 years, 5 months ago (2011-07-22 17:02:07 UTC) #12
Greg Billock
Anything else on this? I'm planning to submit. trybots look ok wrt this change (there ...
9 years, 4 months ago (2011-07-28 19:56:55 UTC) #13
commit-bot: I haz the power
9 years, 4 months ago (2011-08-08 22:45:33 UTC) #14
Change committed as 95896

Powered by Google App Engine
This is Rietveld 408576698