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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2720933003: Removed FrameHost::useCounter() (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 30482ff4660dd2e0a4dbfeef99ed4884f426c540..35e1d0a8497233aed51ed4e54aede63ff8dd12ff 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -3089,13 +3089,13 @@ ScriptPromise Internals::observeUseCounter(ScriptState* scriptState,
return promise;
}
- Frame* frame = document->frame();
- if (!frame || !frame->host()) {
+ Page* page = document->page();
+ if (!page) {
resolver->reject();
return promise;
}
- frame->host()->useCounter().addObserver(
+ page->useCounter().addObserver(
new UseCounterObserverImpl(resolver, useCounterFeature));
return promise;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698