OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/memory/memory_coordinator_client.h" | |
6 | |
7 #include "base/logging.h" | |
haraken
2016/11/01 04:20:29
Do we need this?
bashi
2016/11/01 05:02:16
NOTREACHED()
| |
8 | |
9 namespace base { | |
10 | |
11 std::string MemoryStateToString(MemoryState state) { | |
12 switch (state) { | |
13 case MemoryState::UNKNOWN: | |
14 return "unknown"; | |
15 case MemoryState::NORMAL: | |
16 return "normal"; | |
17 case MemoryState::THROTTLED: | |
18 return "throttled"; | |
19 case MemoryState::SUSPENDED: | |
20 return "suspended"; | |
21 default: | |
22 NOTREACHED(); | |
23 } | |
24 } | |
25 | |
26 } // namespace base | |
27 | |
haraken
2016/11/01 04:20:29
Unnecessary empty line.
bashi
2016/11/01 05:02:16
Done.
| |
OLD | NEW |