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

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

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback 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/frame/BarProp.cpp
diff --git a/third_party/WebKit/Source/core/frame/BarProp.cpp b/third_party/WebKit/Source/core/frame/BarProp.cpp
index e403c7ca96d1114d988eb36d8891e091ca2255ca..95c975732d94e352a94f54de21ce3c531895e0c4 100644
--- a/third_party/WebKit/Source/core/frame/BarProp.cpp
+++ b/third_party/WebKit/Source/core/frame/BarProp.cpp
@@ -28,9 +28,9 @@
#include "core/frame/BarProp.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/LocalFrame.h"
#include "core/page/ChromeClient.h"
+#include "core/page/Page.h"
namespace blink {
@@ -44,19 +44,19 @@ DEFINE_TRACE(BarProp) {
bool BarProp::visible() const {
if (!frame())
return false;
- DCHECK(frame()->host());
+ DCHECK(frame()->page());
switch (m_type) {
case Locationbar:
case Personalbar:
case Toolbar:
- return frame()->host()->chromeClient().toolbarsVisible();
+ return frame()->page()->chromeClient().toolbarsVisible();
case Menubar:
- return frame()->host()->chromeClient().menubarVisible();
+ return frame()->page()->chromeClient().menubarVisible();
case Scrollbars:
- return frame()->host()->chromeClient().scrollbarsVisible();
+ return frame()->page()->chromeClient().scrollbarsVisible();
case Statusbar:
- return frame()->host()->chromeClient().statusbarVisible();
+ return frame()->page()->chromeClient().statusbarVisible();
}
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698