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

Unified Diff: components/ntp_snippets/category.cc

Issue 2678343004: [Suggestions category] Warn more about removing categories. (Closed)
Patch Set: 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
« components/ntp_snippets/category.h ('K') | « 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..1f7a77d9f4545a577a4cc60b1aa99baa25500245 100644
--- a/components/ntp_snippets/category.cc
+++ b/components/ntp_snippets/category.cc
@@ -22,7 +22,10 @@ Category Category::FromRemoteCategory(int remote_category) {
// static
Category Category::FromIDValue(int id) {
- DCHECK(IsValidIDValue(id)) << "Not a valid ID: " << id;
+ DCHECK(IsValidIDValue(id))
+ << "Not a valid ID: " << id
+ << " Note that local categories must not be removed. This can happen if "
+ "you switch out of a branch with a new local category.";
vitaliii 2017/02/08 08:40:35 I have multiple concerns regarding this message: 1
jkrcal 2017/02/08 10:12:05 Done.
return Category(id);
}
« components/ntp_snippets/category.h ('K') | « components/ntp_snippets/category.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698