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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2700293002: DevTools: do not use RAII for sync native breakpoints, reuse AsyncTask where possible. (Closed)
Patch Set: same with unused assert removed - assert is trivial 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/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index bf3600527ec6d7b60dbd5f45e2e1ee851a01001f..cf0048546eac575ef78b8bae520ae61e643e4ab6 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -29,6 +29,8 @@
#include "core/loader/DocumentLoader.h"
+#include <memory>
+
#include "core/dom/Document.h"
#include "core/dom/WeakIdentifierMap.h"
#include "core/events/Event.h"
@@ -42,6 +44,7 @@
#include "core/html/parser/TextResourceDecoder.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/inspector/InspectorInstrumentation.h"
+#include "core/inspector/MainThreadDebugger.h"
#include "core/loader/FrameFetchContext.h"
#include "core/loader/FrameLoader.h"
#include "core/loader/FrameLoaderClient.h"
@@ -74,7 +77,6 @@
#include "wtf/Assertions.h"
#include "wtf/AutoReset.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -302,7 +304,7 @@ void DocumentLoader::notifyFinished(Resource* resource) {
void DocumentLoader::finishedLoading(double finishTime) {
DCHECK(m_frame->loader().stateMachine()->creatingInitialEmptyDocument() ||
!m_frame->page()->suspended() ||
- InspectorInstrumentation::isDebuggerPaused(m_frame));
+ MainThreadDebugger::instance()->isPaused());
double responseEndTime = finishTime;
if (!responseEndTime)

Powered by Google App Engine
This is Rietveld 408576698