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

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

Issue 2585143002: Introduce ContextObserver (Closed)
Patch Set: temp Created 4 years 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/BarProp.h ('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/frame/BarProp.cpp
diff --git a/third_party/WebKit/Source/core/frame/BarProp.cpp b/third_party/WebKit/Source/core/frame/BarProp.cpp
index 6aacda9ddd3a8c83d676ca358af0af0f07376e29..6a76bba68f3a550b12972e7e9bc77bd2f6139e66 100644
--- a/third_party/WebKit/Source/core/frame/BarProp.cpp
+++ b/third_party/WebKit/Source/core/frame/BarProp.cpp
@@ -35,30 +35,28 @@
namespace blink {
BarProp::BarProp(LocalFrame* frame, Type type)
- : DOMWindowProperty(frame), m_type(type) {}
+ : ContextClient(frame), m_type(type) {}
DEFINE_TRACE(BarProp) {
- DOMWindowProperty::trace(visitor);
+ ContextClient::trace(visitor);
}
bool BarProp::visible() const {
if (!frame())
return false;
- FrameHost* host = frame()->host();
- if (!host)
- return false;
+ DCHECK(frame()->host());
switch (m_type) {
case Locationbar:
case Personalbar:
case Toolbar:
- return host->chromeClient().toolbarsVisible();
+ return frame()->host()->chromeClient().toolbarsVisible();
case Menubar:
- return host->chromeClient().menubarVisible();
+ return frame()->host()->chromeClient().menubarVisible();
case Scrollbars:
- return host->chromeClient().scrollbarsVisible();
+ return frame()->host()->chromeClient().scrollbarsVisible();
case Statusbar:
- return host->chromeClient().statusbarVisible();
+ return frame()->host()->chromeClient().statusbarVisible();
}
NOTREACHED();
« no previous file with comments | « third_party/WebKit/Source/core/frame/BarProp.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698