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

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

Issue 1877203004: [DevTools] Follow up with cleanups for InjectedScript::Scope. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ASSERT 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/IgnoreExceptionsScope.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/IgnoreExceptionsScope.h b/third_party/WebKit/Source/platform/v8_inspector/IgnoreExceptionsScope.h
deleted file mode 100644
index 5b3f1517944e1d297d87a7680e6e570033495ad3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/IgnoreExceptionsScope.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 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 IgnoreExceptionsScope_h
-#define IgnoreExceptionsScope_h
-
-#include "platform/inspector_protocol/Allocator.h"
-#include "platform/v8_inspector/V8DebuggerImpl.h"
-#include "wtf/OwnPtr.h"
-
-namespace blink {
-
-class IgnoreExceptionsScope {
- PROTOCOL_DISALLOW_COPY(IgnoreExceptionsScope);
-public:
- explicit IgnoreExceptionsScope(V8DebuggerImpl* debugger)
- : m_debugger(debugger)
- , m_previousPauseOnExceptionsState(V8DebuggerImpl::DontPauseOnExceptions)
- {
- m_previousPauseOnExceptionsState = setPauseOnExceptionsState(V8DebuggerImpl::DontPauseOnExceptions);
- }
-
- ~IgnoreExceptionsScope()
- {
- setPauseOnExceptionsState(m_previousPauseOnExceptionsState);
- }
-
-private:
- V8DebuggerImpl::PauseOnExceptionsState setPauseOnExceptionsState(V8DebuggerImpl::PauseOnExceptionsState newState)
- {
- if (!m_debugger || !m_debugger->enabled())
- return newState;
- V8DebuggerImpl::PauseOnExceptionsState presentState = m_debugger->getPauseOnExceptionsState();
- if (presentState != newState)
- m_debugger->setPauseOnExceptionsState(newState);
- return presentState;
- }
-
- V8DebuggerImpl* m_debugger;
- V8DebuggerImpl::PauseOnExceptionsState m_previousPauseOnExceptionsState;
-};
-
-} // namespace blink
-
-#endif // IgnoreExceptionsScope_h

Powered by Google App Engine
This is Rietveld 408576698