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

Unified Diff: components/sessions/session_service_commands.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
Index: components/sessions/session_service_commands.cc
diff --git a/components/sessions/session_service_commands.cc b/components/sessions/session_service_commands.cc
index bc005b96cc34faae657e5f72fa61110b8329143c..00be34b784c8557fd613655a564a9cace7c20118 100644
--- a/components/sessions/session_service_commands.cc
+++ b/components/sessions/session_service_commands.cc
@@ -107,9 +107,9 @@ typedef std::map<SessionID::id_type, SessionWindow*> IdToSessionWindow;
// Assert to ensure PersistedWindowShowState is updated if ui::WindowShowState
// is changed.
-COMPILE_ASSERT(ui::SHOW_STATE_END ==
- static_cast<ui::WindowShowState>(PERSISTED_SHOW_STATE_END),
- persisted_show_state_mismatch);
+static_assert(ui::SHOW_STATE_END ==
+ static_cast<ui::WindowShowState>(PERSISTED_SHOW_STATE_END),
+ "SHOW_STATE_END must equal PERSISTED_SHOW_STATE_END");
// Returns the show state to store to disk based |state|.
PersistedWindowShowState ShowStateToPersistedShowState(
« no previous file with comments | « components/sessions/serialized_navigation_entry.cc ('k') | components/signin/core/browser/signin_error_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698