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

Unified Diff: Source/web/WebDevToolsAgentImpl.cpp

Issue 381403002: DevTools: Make WebDevToolsAgent load processId from its client. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebDevToolsAgentImpl.cpp
diff --git a/Source/web/WebDevToolsAgentImpl.cpp b/Source/web/WebDevToolsAgentImpl.cpp
index 947a9a53f4ffd7383fc8a7fc427e6d633d7a1b1c..d7f727dc0fba5c35cd33c65f0dfd061d7abc386f 100644
--- a/Source/web/WebDevToolsAgentImpl.cpp
+++ b/Source/web/WebDevToolsAgentImpl.cpp
@@ -216,6 +216,10 @@ WebDevToolsAgentImpl::WebDevToolsAgentImpl(
, m_pageScaleLimitsOverriden(false)
, m_touchEventEmulationEnabled(false)
{
+ long processId = client->processId();
+ ASSERT(processId > 0);
+ inspectorController()->setProcessId(processId);
+
ASSERT(m_debuggerId > 0);
ClientMessageLoopAdapter::ensureClientMessageLoopCreated(m_client);
}
@@ -676,7 +680,6 @@ void WebDevToolsAgentImpl::updateInspectorStateCookie(const String& state)
void WebDevToolsAgentImpl::setProcessId(long processId)
{
- inspectorController()->setProcessId(processId);
}
void WebDevToolsAgentImpl::setLayerTreeId(int layerTreeId)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698