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

Unified Diff: Source/core/page/Page.cpp

Issue 892693006: Revert of DevTools: use per-LocalFrame instrumenting agents instead of per-Page ones. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/storage/StorageArea.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index b9bf31057365de564e2fe2907d0a2f82b1d6e0fc..ae9ca8586bfb5b6d15bd3ef0b695f82b7310aff3 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -92,13 +92,12 @@
if (frame->isLocalFrame())
frames.append(toLocalFrame(frame));
}
+ InspectorInstrumentation::networkStateChanged(page, online);
}
AtomicString eventName = online ? EventTypeNames::online : EventTypeNames::offline;
- for (unsigned i = 0; i < frames.size(); i++) {
+ for (unsigned i = 0; i < frames.size(); i++)
frames[i]->domWindow()->dispatchEvent(Event::create(eventName));
- InspectorInstrumentation::networkStateChanged(frames[i].get(), online);
- }
}
float deviceScaleFactor(LocalFrame* frame)
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/storage/StorageArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698