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

Side by Side Diff: content/shell/renderer/shell_render_view_observer.cc

Issue 17895003: Add --expose-internals-for-testing flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move flag to be content-shell specific Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/shell_render_view_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 #include "content/shell/renderer/shell_render_view_observer.h"
6
7 #include "base/command_line.h"
8 #include "content/public/renderer/render_view.h"
9 #include "content/public/renderer/render_view_observer.h"
10 #include "content/shell/common/shell_switches.h"
11 #include "third_party/WebKit/public/web/WebTestingSupport.h"
12 #include "third_party/WebKit/public/web/WebView.h"
13
14 namespace content {
15
16 ShellRenderViewObserver::ShellRenderViewObserver(RenderView* render_view)
17 : RenderViewObserver(render_view) {
18 }
19
20 void ShellRenderViewObserver::DidClearWindowObject(WebKit::WebFrame* frame) {
21 if (CommandLine::ForCurrentProcess()->HasSwitch(
22 switches::kExposeInternalsForTesting)) {
23 WebKit::WebTestingSupport::injectInternalsObject(frame);
24 }
25 }
26
27 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/shell_render_view_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698