Index: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp |
index 149aafe389f4902a673add705d572954b4eb0517..29d711f1319fa2d32ab68d7a400b5855bc662156 100644 |
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp |
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp |
@@ -73,9 +73,8 @@ namespace blink { |
namespace { |
-int FrameId(LocalFrame* frame) { |
- ASSERT(frame); |
- return WeakIdentifierMap<LocalFrame>::Identifier(frame); |
+int FrameId(LocalFrame& frame) { |
+ return WeakIdentifierMap<LocalFrame>::Identifier(&frame); |
} |
Mutex& CreationMutex() { |
@@ -215,7 +214,7 @@ void MainThreadDebugger::ExceptionThrown(ExecutionContext* context, |
} |
int MainThreadDebugger::ContextGroupId(LocalFrame* frame) { |
- LocalFrame* local_frame_root = frame->LocalFrameRoot(); |
+ LocalFrame& local_frame_root = frame->LocalFrameRoot(); |
return FrameId(local_frame_root); |
} |