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

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

Issue 2375873003: Make DOMWindowProperty::m_frame private (Closed)
Patch Set: Created 4 years, 3 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/History.cpp ('k') | third_party/WebKit/Source/core/frame/Screen.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/Navigator.cpp
diff --git a/third_party/WebKit/Source/core/frame/Navigator.cpp b/third_party/WebKit/Source/core/frame/Navigator.cpp
index c2461fb55406bcdf303916018c36c33be99a1bd5..fdfe0ddfbb5e9eb2886ba2b134f15a138a75fe20 100644
--- a/third_party/WebKit/Source/core/frame/Navigator.cpp
+++ b/third_party/WebKit/Source/core/frame/Navigator.cpp
@@ -62,34 +62,34 @@ String Navigator::vendorSub() const
String Navigator::userAgent() const
{
// If the frame is already detached it no longer has a meaningful useragent.
- if (!m_frame || !m_frame->page())
+ if (!frame() || !frame()->page())
return String();
- return m_frame->loader().userAgent();
+ return frame()->loader().userAgent();
}
bool Navigator::cookieEnabled() const
{
- if (!m_frame)
+ if (!frame())
return false;
- Settings* settings = m_frame->settings();
+ Settings* settings = frame()->settings();
if (!settings || !settings->cookieEnabled())
return false;
- return cookiesEnabled(m_frame->document());
+ return cookiesEnabled(frame()->document());
}
Vector<String> Navigator::languages()
{
Vector<String> languages;
- if (!m_frame || !m_frame->host()) {
+ if (!frame() || !frame()->host()) {
languages.append(defaultLanguage());
return languages;
}
- String acceptLanguages = m_frame->host()->chromeClient().acceptLanguages();
+ String acceptLanguages = frame()->host()->chromeClient().acceptLanguages();
acceptLanguages.split(',', languages);
// Sanitizing tokens. We could do that more extensively but we should assume
« no previous file with comments | « third_party/WebKit/Source/core/frame/History.cpp ('k') | third_party/WebKit/Source/core/frame/Screen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698