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

Unified Diff: components/ntp_snippets/category.cc

Issue 2678343004: [Suggestions category] Warn more about removing categories. (Closed)
Patch Set: Comments #2 Created 3 years, 10 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 | « components/ntp_snippets/category.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/category.cc
diff --git a/components/ntp_snippets/category.cc b/components/ntp_snippets/category.cc
index 7274a0105c4854aa0bb69320e9b0b2d13812a53b..0a3fc04b3be09df8e8828466b48354057fa9a200 100644
--- a/components/ntp_snippets/category.cc
+++ b/components/ntp_snippets/category.cc
@@ -22,7 +22,9 @@ Category Category::FromRemoteCategory(int remote_category) {
// static
Category Category::FromIDValue(int id) {
- DCHECK(IsValidIDValue(id)) << "Not a valid ID: " << id;
+ DCHECK(IsValidIDValue(id)) << id << " is not a valid category ID. This may "
+ "have been caused by removal of a local "
+ "KnownCategory.";
return Category(id);
}
« no previous file with comments | « components/ntp_snippets/category.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698