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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp

Issue 2139363003: [DevTools] Cleanup v8_inspector API part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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/InjectedScript.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
index f42cdb6a1be22d8fe284c48d2b7e61ad6b155f7a..c985e9daefb20fb6ff4821ab8520003a7dcd91f4 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
@@ -399,7 +399,7 @@ void InjectedScript::Scope::ignoreExceptionsAndMuteConsole()
{
DCHECK(!m_ignoreExceptionsAndMuteConsole);
m_ignoreExceptionsAndMuteConsole = true;
- m_debugger->muteConsole();
+ m_debugger->client()->muteWarningsAndDeprecations();
m_previousPauseOnExceptionsState = setPauseOnExceptionsState(V8DebuggerImpl::DontPauseOnExceptions);
}
@@ -433,7 +433,7 @@ InjectedScript::Scope::~Scope()
{
if (m_ignoreExceptionsAndMuteConsole) {
setPauseOnExceptionsState(m_previousPauseOnExceptionsState);
- m_debugger->unmuteConsole();
+ m_debugger->client()->unmuteWarningsAndDeprecations();
}
if (m_userGesture)
m_debugger->client()->endUserGesture();

Powered by Google App Engine
This is Rietveld 408576698