Index: content/renderer/gin_browsertest.cc |
diff --git a/content/renderer/gin_browsertest.cc b/content/renderer/gin_browsertest.cc |
index a8639a15318a3bec80db6c226260135b3aefeb0a..097dfe2fb1c6e6869bebc57ce80d2f4361627bb0 100644 |
--- a/content/renderer/gin_browsertest.cc |
+++ b/content/renderer/gin_browsertest.cc |
@@ -11,8 +11,8 @@ |
#include "gin/per_isolate_data.h" |
#include "gin/wrappable.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "third_party/WebKit/public/web/WebFrame.h" |
#include "third_party/WebKit/public/web/WebKit.h" |
+#include "third_party/WebKit/public/web/WebLocalFrame.h" |
#include "third_party/WebKit/public/web/WebView.h" |
namespace content { |
@@ -65,8 +65,7 @@ TEST_F(GinBrowserTest, GinAndGarbageCollection) { |
{ |
v8::Isolate* isolate = blink::MainThreadIsolate(); |
v8::HandleScope handle_scope(isolate); |
- v8::Context::Scope context_scope( |
- view_->GetWebView()->MainFrame()->MainWorldScriptContext()); |
+ v8::Context::Scope context_scope(GetMainFrame()->MainWorldScriptContext()); |
// We create the object inside a scope so it's not kept alive by a handle |
// on the stack. |