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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure blame context is initialized early enough Created 4 years, 9 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/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index a68c4846066932628615678c7283f4186e14c1fb..6fd374f3e5da246be69e2129f1c88008af58058c 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -79,7 +79,6 @@
#include "platform/text/TextStream.h"
#include "public/platform/WebFrameScheduler.h"
#include "public/platform/WebScreenInfo.h"
-#include "public/platform/WebSecurityOrigin.h"
#include "public/platform/WebViewScheduler.h"
#include "third_party/skia/include/core/SkImage.h"
#include "wtf/PassOwnPtr.h"
@@ -843,7 +842,7 @@ inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO
WebFrameScheduler* LocalFrame::frameScheduler()
{
if (!m_frameScheduler.get())
- m_frameScheduler = page()->chromeClient().createFrameScheduler();
+ m_frameScheduler = page()->chromeClient().createFrameScheduler(client()->frameBlameContext());
ASSERT(m_frameScheduler.get());
return m_frameScheduler.get();
@@ -859,7 +858,6 @@ void LocalFrame::scheduleVisualUpdateUnlessThrottled()
void LocalFrame::updateSecurityOrigin(SecurityOrigin* origin)
{
script().updateSecurityOrigin(origin);
- frameScheduler()->setFrameOrigin(WebSecurityOrigin(origin));
}
DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame);
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameClient.h ('k') | third_party/WebKit/Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698