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

Unified Diff: third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 10 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/core/inspector/WorkerThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
index 8777db7fd58b6f690301c583fcc3fda8b1da200c..2cb4eec19a6f5c615dbc2e748fd541c928ed777f 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/WorkerThreadDebugger.cpp
@@ -143,14 +143,14 @@ void WorkerThreadDebugger::runMessageLoopOnPause(int contextGroupId) {
DCHECK_EQ(kInvalidContextGroupId, m_pausedContextGroupId);
DCHECK(m_workerThreads.contains(contextGroupId));
m_pausedContextGroupId = contextGroupId;
- m_workerThreads.get(contextGroupId)
+ m_workerThreads.at(contextGroupId)
->startRunningDebuggerTasksOnPauseOnWorkerThread();
}
void WorkerThreadDebugger::quitMessageLoopOnPause() {
DCHECK_NE(kInvalidContextGroupId, m_pausedContextGroupId);
DCHECK(m_workerThreads.contains(m_pausedContextGroupId));
- m_workerThreads.get(m_pausedContextGroupId)
+ m_workerThreads.at(m_pausedContextGroupId)
->stopRunningDebuggerTasksOnPauseOnWorkerThread();
m_pausedContextGroupId = kInvalidContextGroupId;
}
@@ -166,7 +166,7 @@ void WorkerThreadDebugger::unmuteMetrics(int contextGroupId) {
v8::Local<v8::Context> WorkerThreadDebugger::ensureDefaultContextInGroup(
int contextGroupId) {
DCHECK(m_workerThreads.contains(contextGroupId));
- ScriptState* scriptState = m_workerThreads.get(contextGroupId)
+ ScriptState* scriptState = m_workerThreads.at(contextGroupId)
->globalScope()
->scriptController()
->getScriptState();
@@ -188,7 +188,7 @@ bool WorkerThreadDebugger::canExecuteScripts(int contextGroupId) {
void WorkerThreadDebugger::runIfWaitingForDebugger(int contextGroupId) {
DCHECK(m_workerThreads.contains(contextGroupId));
- m_workerThreads.get(contextGroupId)
+ m_workerThreads.at(contextGroupId)
->stopRunningDebuggerTasksOnPauseOnWorkerThread();
}
@@ -201,7 +201,7 @@ void WorkerThreadDebugger::consoleAPIMessage(
unsigned columnNumber,
v8_inspector::V8StackTrace* stackTrace) {
DCHECK(m_workerThreads.contains(contextGroupId));
- WorkerThread* workerThread = m_workerThreads.get(contextGroupId);
+ WorkerThread* workerThread = m_workerThreads.at(contextGroupId);
std::unique_ptr<SourceLocation> location =
SourceLocation::create(toCoreString(url), lineNumber, columnNumber,
stackTrace ? stackTrace->clone() : nullptr, 0);
@@ -212,7 +212,7 @@ void WorkerThreadDebugger::consoleAPIMessage(
void WorkerThreadDebugger::consoleClear(int contextGroupId) {
DCHECK(m_workerThreads.contains(contextGroupId));
- WorkerThread* workerThread = m_workerThreads.get(contextGroupId);
+ WorkerThread* workerThread = m_workerThreads.at(contextGroupId);
workerThread->consoleMessageStorage()->clear();
}
« no previous file with comments | « third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp ('k') | third_party/WebKit/Source/core/layout/Grid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698