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

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

Issue 2172013002: Wire up OOM exception to the sad tab page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memory2
Patch Set: namespace Created 4 years, 5 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
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 7b3c647a4f0e03dec312d001e01fff57e8d1cf23..2d9a76fb9ce564472df6b7500d62b10df57a3807 100644
--- a/chrome/browser/ui/views/sad_tab_view.cc
+++ b/chrome/browser/ui/views/sad_tab_view.cc
@@ -166,6 +166,8 @@ SadTabView::SadTabView(WebContents* web_contents, chrome::SadTabKind kind)
if (kind_ == chrome::SAD_TAB_KIND_KILLED_BY_OOM)
message_id = IDS_KILLED_TAB_BY_OOM_MESSAGE;
#endif
+ if (kind_ == chrome::SAD_TAB_OOM)
+ message_id = IDS_SAD_TAB_OOM_MESSAGE;
message_ = CreateLabel(l10n_util::GetStringUTF16(message_id));

Powered by Google App Engine
This is Rietveld 408576698