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

Unified Diff: third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp

Issue 2627413003: NavigatorContentUtils should be a supplement of Navigator (Closed)
Patch Set: temp Created 3 years, 11 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/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp
diff --git a/third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp b/third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp
index 08a79d082eb39b5f01eb19bbb867c0ce9ab8c0f6..147e7135cfd8a0c65449bee5fa470a0af38016ea 100644
--- a/third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp
+++ b/third_party/WebKit/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp
@@ -5,6 +5,7 @@
#include "InternalsNavigatorContentUtils.h"
#include "core/dom/Document.h"
+#include "core/frame/LocalDOMWindow.h"
#include "core/testing/Internals.h"
#include "modules/navigatorcontentutils/NavigatorContentUtils.h"
#include "modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h"
@@ -16,7 +17,7 @@ void InternalsNavigatorContentUtils::setNavigatorContentUtilsClientMock(
Document* document) {
ASSERT(document && document->page());
NavigatorContentUtils* navigatorContentUtils =
- NavigatorContentUtils::from(*document->frame());
+ NavigatorContentUtils::from(*document->domWindow()->navigator());
navigatorContentUtils->setClientForTest(
NavigatorContentUtilsClientMock::create());
}

Powered by Google App Engine
This is Rietveld 408576698