Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / shell / renderer / layout_test / layout_test_render_frame_observer.cc
blob062e911f3dabfff56dade9e89d3862627591e8f9
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/shell/renderer/layout_test/layout_test_render_frame_observer.h"
7 #include "components/test_runner/web_test_interfaces.h"
8 #include "components/test_runner/web_test_runner.h"
9 #include "content/public/renderer/render_frame.h"
10 #include "content/shell/renderer/layout_test/layout_test_render_process_observer.h"
11 #include "third_party/WebKit/public/web/WebLocalFrame.h"
13 namespace content {
15 LayoutTestRenderFrameObserver::LayoutTestRenderFrameObserver(
16 RenderFrame* render_frame)
17 : RenderFrameObserver(render_frame) {
18 render_frame->GetWebFrame()->setContentSettingsClient(
19 LayoutTestRenderProcessObserver::GetInstance()
20 ->test_interfaces()
21 ->TestRunner()
22 ->GetWebContentSettings());
25 } // namespace content