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

Unified Diff: Source/core/inspector/PageRuntimeAgent.cpp

Issue 1225763002: Remove debugger id, use local frame id instead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 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 | « Source/core/inspector/PageRuntimeAgent.h ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/PageRuntimeAgent.cpp
diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp
index 16c4d1514578a954c0278fb76fd6058c42ef0e00..b640ea933a755e8a31636b9e05bd1ddb97a91cd1 100644
--- a/Source/core/inspector/PageRuntimeAgent.cpp
+++ b/Source/core/inspector/PageRuntimeAgent.cpp
@@ -41,19 +41,15 @@
#include "core/inspector/InjectedScriptManager.h"
#include "core/inspector/InspectorPageAgent.h"
#include "core/inspector/InstrumentingAgents.h"
-#include "core/inspector/MainThreadDebugger.h"
#include "core/page/Page.h"
#include "platform/weborigin/SecurityOrigin.h"
namespace blink {
-static int s_nextDebuggerId = 1;
-
PageRuntimeAgent::PageRuntimeAgent(InjectedScriptManager* injectedScriptManager, Client* client, V8Debugger* debugger, InspectorPageAgent* pageAgent)
: InspectorRuntimeAgent(injectedScriptManager, debugger, client)
, m_pageAgent(pageAgent)
, m_mainWorldContextCreated(false)
- , m_debuggerId(s_nextDebuggerId++)
{
}
@@ -102,15 +98,10 @@ void PageRuntimeAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
void PageRuntimeAgent::didCreateScriptContext(LocalFrame* frame, ScriptState* scriptState, SecurityOrigin* origin, int worldId)
{
- bool isMainWorld = worldId == MainWorldId;
-
- // Name the context for debugging.
- String type = isMainWorld ? "page" : "injected";
- MainThreadDebugger::setContextDebugData(scriptState->context(), type, m_debuggerId);
-
if (!m_enabled)
return;
ASSERT(frontend());
+ bool isMainWorld = worldId == MainWorldId;
String originString = origin ? origin->toRawString() : "";
String frameId = IdentifiersFactory::frameId(frame);
addExecutionContextToFrontend(scriptState, isMainWorld, originString, frameId);
« no previous file with comments | « Source/core/inspector/PageRuntimeAgent.h ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698