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

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

Issue 2800213002: Avoid duplicate functions/code in core/inspector.
Patch Set: Manual inlined urlWithoutFragment Created 3 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 | « third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 acbe2a244879797df909a25a5dc973760a48d5cf..a170b02ffb13016b9c21b55208d683e2a0101da1 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
@@ -73,10 +73,6 @@ namespace blink {
namespace {
-int FrameId(LocalFrame& frame) {
- return WeakIdentifierMap<LocalFrame>::Identifier(&frame);
-}
-
Mutex& CreationMutex() {
DEFINE_THREAD_SAFE_STATIC_LOCAL(Mutex, mutex, ());
return mutex;
@@ -214,7 +210,7 @@ void MainThreadDebugger::ExceptionThrown(ExecutionContext* context,
int MainThreadDebugger::ContextGroupId(LocalFrame* frame) {
LocalFrame& local_frame_root = frame->LocalFrameRoot();
- return FrameId(local_frame_root);
+ return WeakIdentifierMap<LocalFrame>::Identifier(&local_frame_root);
}
MainThreadDebugger* MainThreadDebugger::Instance() {
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698