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

Unified Diff: Source/web/InspectorEmulationAgent.cpp

Issue 1022773002: Oilpan: tidy up finalization of InspectorEmulationAgent following r192106. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/web/InspectorEmulationAgent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/InspectorEmulationAgent.cpp
diff --git a/Source/web/InspectorEmulationAgent.cpp b/Source/web/InspectorEmulationAgent.cpp
index 4d0895ca6af78f7ac25129de600118cc3661bcaf..d27751e2b01409a4ac6e6e58d74ccf34317e0236 100644
--- a/Source/web/InspectorEmulationAgent.cpp
+++ b/Source/web/InspectorEmulationAgent.cpp
@@ -36,7 +36,6 @@ InspectorEmulationAgent::InspectorEmulationAgent(WebViewImpl* webViewImpl)
InspectorEmulationAgent::~InspectorEmulationAgent()
{
- m_webViewImpl->devToolsEmulator()->setEmulationAgent(nullptr);
}
void InspectorEmulationAgent::restore()
@@ -55,6 +54,11 @@ void InspectorEmulationAgent::disable(ErrorString*)
setEmulatedMedia(&error, String());
}
+void InspectorEmulationAgent::discardAgent()
+{
+ m_webViewImpl->devToolsEmulator()->setEmulationAgent(nullptr);
+}
+
void InspectorEmulationAgent::didCommitLoadForLocalFrame(LocalFrame* frame)
{
if (frame == m_webViewImpl->mainFrameImpl()->frame())
« no previous file with comments | « Source/web/InspectorEmulationAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698