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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/MuteConsoleScope.h

Issue 1877203004: [DevTools] Follow up with cleanups for InjectedScript::Scope. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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: third_party/WebKit/Source/platform/v8_inspector/MuteConsoleScope.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/MuteConsoleScope.h b/third_party/WebKit/Source/platform/v8_inspector/MuteConsoleScope.h
deleted file mode 100644
index 31fa4194d1aac9da503839374b01ab5a05573f02..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/MuteConsoleScope.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MuteConsoleScope_h
-#define MuteConsoleScope_h
-
-#include "platform/inspector_protocol/Allocator.h"
-#include "platform/v8_inspector/V8DebuggerImpl.h"
-#include "platform/v8_inspector/public/V8DebuggerClient.h"
-
-namespace blink {
-
-class MuteConsoleScope {
- PROTOCOL_DISALLOW_COPY(MuteConsoleScope);
-public:
- explicit MuteConsoleScope(V8DebuggerImpl* debugger)
- : m_debugger(debugger)
- {
- if (m_debugger)
- m_debugger->client()->muteConsole();
- }
-
- ~MuteConsoleScope()
- {
- if (m_debugger)
- m_debugger->client()->unmuteConsole();
- }
-
-private:
- V8DebuggerImpl* m_debugger;
-};
-
-} // namespace blink
-
-#endif // MuteConsoleScope_h

Powered by Google App Engine
This is Rietveld 408576698