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

Issue 11879029: CrOS: Prefer discarding internal web UI pages when out of memory (Closed)

Created:
7 years, 11 months ago by James Cook
Modified:
4 years, 6 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

CrOS: Prefer discarding internal web UI pages when out of memory Discard the NTP, Settings, History and downloads pages first when the OS runs out of physical memory. These pages are stateless and quick to reload when the tab is selected. BUG=166891 TEST=Added to unit_tests for OomPriorityManager Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176981

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix nit, rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -2 lines) Patch
M chrome/browser/chromeos/memory/oom_priority_manager.h View 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/memory/oom_priority_manager.cc View 1 7 chunks +34 lines, -1 line 1 comment Download
M chrome/browser/chromeos/memory/oom_priority_manager_unittest.cc View 4 chunks +33 lines, -1 line 0 comments Download

Messages

Total messages: 9 (1 generated)
James Cook
Greg, PTAL.
7 years, 11 months ago (2013-01-15 00:50:25 UTC) #1
Greg Spencer (Chromium)
LGTM w/nit https://codereview.chromium.org/11879029/diff/1/chrome/browser/chromeos/memory/oom_priority_manager.cc File chrome/browser/chromeos/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/11879029/diff/1/chrome/browser/chromeos/memory/oom_priority_manager.cc#newcode204 chrome/browser/chromeos/memory/oom_priority_manager.cc:204: str += ASCIIToUTF16(it->is_reloadable_ui ? " discardable_ui" : ...
7 years, 11 months ago (2013-01-15 00:54:47 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/11879029/6001
7 years, 11 months ago (2013-01-15 19:42:49 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/11879029/6001
7 years, 11 months ago (2013-01-15 19:48:57 UTC) #4
commit-bot: I haz the power
Change committed as 176981
7 years, 11 months ago (2013-01-15 22:10:22 UTC) #5
Dan Beam
https://chromiumcodereview.appspot.com/11879029/diff/6001/chrome/browser/chromeos/memory/oom_priority_manager.cc File chrome/browser/chromeos/memory/oom_priority_manager.cc (right): https://chromiumcodereview.appspot.com/11879029/diff/6001/chrome/browser/chromeos/memory/oom_priority_manager.cc#newcode249 chrome/browser/chromeos/memory/oom_priority_manager.cc:249: chrome::kChromeUISettingsURL, why wouldn't we use WebUIControllerFactoryRegistry::UseWebUIForURL() instead of this ...
4 years, 6 months ago (2016-06-01 17:30:36 UTC) #7
James Cook
On 2016/06/01 17:30:36, Dan Beam wrote: > https://chromiumcodereview.appspot.com/11879029/diff/6001/chrome/browser/chromeos/memory/oom_priority_manager.cc > File chrome/browser/chromeos/memory/oom_priority_manager.cc (right): > > https://chromiumcodereview.appspot.com/11879029/diff/6001/chrome/browser/chromeos/memory/oom_priority_manager.cc#newcode249 ...
4 years, 6 months ago (2016-06-01 17:44:31 UTC) #8
groby-ooo-7-16
4 years, 6 months ago (2016-06-02 01:47:17 UTC) #9
Message was sent while issue was closed.
On 2016/06/01 17:30:36, Dan Beam wrote:
>
https://chromiumcodereview.appspot.com/11879029/diff/6001/chrome/browser/chro...
> File chrome/browser/chromeos/memory/oom_priority_manager.cc (right):
> 
>
https://chromiumcodereview.appspot.com/11879029/diff/6001/chrome/browser/chro...
> chrome/browser/chromeos/memory/oom_priority_manager.cc:249:
> chrome::kChromeUISettingsURL,
> why wouldn't we use WebUIControllerFactoryRegistry::UseWebUIForURL() instead
of
> this half-baked list?

Since nothing in life is ever easy: UseWebUIForURL depends on a browser_context,
which we don't have when this is called. But since it's already been
copy/pasta'd, I'm at least factoring it out into a shared function:
https://codereview.chromium.org/2034573002

Further cleanup welcome ;)

Powered by Google App Engine
This is Rietveld 408576698