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

Unified Diff: chrome/browser/ui/views/sad_tab_view.cc

Issue 1188823002: [MemoryPressure] Move chrome/browser/chromeos/* to chrome/browser/memory/*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sky@ comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/metrics/chrome_stability_metrics_provider.cc ('k') | chrome/browser/ui/webui/about_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/sad_tab_view.cc
diff --git a/chrome/browser/ui/views/sad_tab_view.cc b/chrome/browser/ui/views/sad_tab_view.cc
index fb7dc882dcb991e57dd53311c3fd240d393473ca..dfdd33dcf324164aa16f74224fb54083f33670a2 100644
--- a/chrome/browser/ui/views/sad_tab_view.cc
+++ b/chrome/browser/ui/views/sad_tab_view.cc
@@ -34,7 +34,7 @@
#include "ui/views/widget/widget.h"
#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/memory/oom_memory_details.h"
+#include "chrome/browser/memory/oom_memory_details.h"
#endif
using content::OpenURLParams;
@@ -91,8 +91,8 @@ SadTabView::SadTabView(WebContents* web_contents, chrome::SadTabKind kind)
DCHECK(web_contents);
// These stats should use the same counting approach and bucket size used for
- // tab discard events in chromeos::OomPriorityManager so they can be
- // directly compared.
+ // tab discard events in memory::OomPriorityManager so they can be directly
+ // compared.
// TODO(jamescook): Maybe track time between sad tabs?
switch (kind_) {
case chrome::SAD_TAB_KIND_CRASHED: {
@@ -113,9 +113,8 @@ SadTabView::SadTabView(WebContents* web_contents, chrome::SadTabKind kind)
RecordKillCreated();
RecordKillCreatedOOM();
const std::string spec = web_contents->GetURL().GetOrigin().spec();
- chromeos::OomMemoryDetails::Log(
- "Tab OOM-Killed Memory details: " + spec + ", ",
- base::Closure());
+ memory::OomMemoryDetails::Log(
+ "Tab OOM-Killed Memory details: " + spec + ", ", base::Closure());
break;
}
#endif
@@ -297,8 +296,8 @@ void SadTabView::Layout() {
void SadTabView::OnPaint(gfx::Canvas* canvas) {
if (!painted_) {
// These stats should use the same counting approach and bucket size used
- // for tab discard events in chromeos::OomPriorityManager so they
- // can be directly compared.
+ // for tab discard events in memory::OomPriorityManager so they can be
+ // directly compared.
switch (kind_) {
case chrome::SAD_TAB_KIND_CRASHED: {
static int crashed = 0;
« no previous file with comments | « chrome/browser/metrics/chrome_stability_metrics_provider.cc ('k') | chrome/browser/ui/webui/about_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698