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

Unified Diff: components/sessions/serialized_navigation_entry.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 years 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/proximity_auth/wire_message.cc ('k') | components/sessions/session_service_commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/serialized_navigation_entry.cc
diff --git a/components/sessions/serialized_navigation_entry.cc b/components/sessions/serialized_navigation_entry.cc
index 8c358281b1d8dd13f8ed61ac440e1451800a631f..4b041427bdca4ac042b1326acfb4094fe4e8f059 100644
--- a/components/sessions/serialized_navigation_entry.cc
+++ b/components/sessions/serialized_navigation_entry.cc
@@ -304,9 +304,10 @@ sync_pb::TabNavigation SerializedNavigationEntry::ToSyncData() const {
sync_data.set_title(base::UTF16ToUTF8(title_));
// Page transition core.
- COMPILE_ASSERT(ui::PAGE_TRANSITION_LAST_CORE ==
- ui::PAGE_TRANSITION_KEYWORD_GENERATED,
- PageTransitionCoreBounds);
+ static_assert(ui::PAGE_TRANSITION_LAST_CORE ==
+ ui::PAGE_TRANSITION_KEYWORD_GENERATED,
+ "PAGE_TRANSITION_LAST_CORE must equal "
+ "PAGE_TRANSITION_KEYWORD_GENERATED");
switch (ui::PageTransitionStripQualifier(transition_type_)) {
case ui::PAGE_TRANSITION_LINK:
sync_data.set_page_transition(
« no previous file with comments | « components/proximity_auth/wire_message.cc ('k') | components/sessions/session_service_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698