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

Unified Diff: third_party/WebKit/Source/core/frame/Navigator.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/Navigator.cpp
diff --git a/third_party/WebKit/Source/core/frame/Navigator.cpp b/third_party/WebKit/Source/core/frame/Navigator.cpp
index 14c6ec1d1603965d5b21f3080301dd37bf0c691c..117da44ef611be23664c4b27a5b2677d837f758c 100644
--- a/third_party/WebKit/Source/core/frame/Navigator.cpp
+++ b/third_party/WebKit/Source/core/frame/Navigator.cpp
@@ -25,13 +25,13 @@
#include "bindings/core/v8/ScriptController.h"
#include "core/dom/Document.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/NavigatorID.h"
#include "core/frame/Settings.h"
#include "core/loader/CookieJar.h"
#include "core/loader/FrameLoader.h"
#include "core/page/ChromeClient.h"
+#include "core/page/Page.h"
#include "platform/Language.h"
namespace blink {
@@ -76,12 +76,12 @@ bool Navigator::cookieEnabled() const {
Vector<String> Navigator::languages() {
Vector<String> languages;
- if (!frame() || !frame()->host()) {
+ if (!frame() || !frame()->page()) {
languages.push_back(defaultLanguage());
return languages;
}
- String acceptLanguages = frame()->host()->chromeClient().acceptLanguages();
+ String acceptLanguages = frame()->page()->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/LocalDOMWindow.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