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

Unified Diff: components/ntp_snippets/category.h

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
« no previous file with comments | « no previous file | components/ntp_snippets/category.cc » ('j') | components/ntp_snippets/category.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/category.h
diff --git a/components/ntp_snippets/category.h b/components/ntp_snippets/category.h
index 6e36a3aa47ec5c73672e28826bcc305ea8ee7e82..a8571cfaa86852fed8bfaaa009dc99de83a3104f 100644
--- a/components/ntp_snippets/category.h
+++ b/components/ntp_snippets/category.h
@@ -33,7 +33,12 @@ enum class KnownCategories {
// Pages recently browsed to on other devices.
FOREIGN_TABS,
- // INSERT NEW LOCAL CATEGORIES HERE!
+
+ // ****************** INSERT NEW LOCAL CATEGORIES HERE! ******************
+ // Existing categories must never be removed. This happens easily if you
+ // switch out of a local branch that contains a new category. If you cannot
+ // avoid it, consider forcing ConstantCategoryRanker via chrome://flags.
+ // Otherwise, Chrome will crash and you would need to reinstall it to fix it.
vitaliii 2017/02/08 08:40:35 Jumping directly to "switching out of a local bran
jkrcal 2017/02/08 10:12:05 Done.
// Follows the last local category.
LOCAL_CATEGORIES_COUNT,
@@ -43,7 +48,8 @@ enum class KnownCategories {
// Articles for you.
ARTICLES,
- // INSERT NEW REMOTE CATEGORIES HERE!
+
+ // ****************** INSERT NEW REMOTE CATEGORIES HERE! ******************
// Tracks the last known remote category
LAST_KNOWN_REMOTE_CATEGORY = ARTICLES,
« no previous file with comments | « no previous file | components/ntp_snippets/category.cc » ('j') | components/ntp_snippets/category.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698