| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MuteConsoleScope_h | 5 #ifndef MuteConsoleScope_h |
| 6 #define MuteConsoleScope_h | 6 #define MuteConsoleScope_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void exit() | 35 void exit() |
| 36 { | 36 { |
| 37 if (!m_agent) | 37 if (!m_agent) |
| 38 return; | 38 return; |
| 39 | 39 |
| 40 m_agent->unmuteConsole(); | 40 m_agent->unmuteConsole(); |
| 41 m_agent = nullptr; | 41 m_agent = nullptr; |
| 42 } | 42 } |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 RawPtrWillBeMember<T> m_agent = nullptr; | 45 Member<T> m_agent = nullptr; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // MuteConsoleScope_h | 50 #endif // MuteConsoleScope_h |
| OLD | NEW |