| 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(
|
|
|