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

Unified Diff: content/renderer/render_view_impl.cc

Issue 17895003: Add --expose-internals-for-testing flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 826e12121b8177e8839c95fe638babe5d07728ab..1d7dbd3af1af3603830e42ba6bde01a8c55e4207 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -190,6 +190,7 @@
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "third_party/WebKit/public/platform/WebURLResponse.h"
#include "third_party/WebKit/public/platform/WebVector.h"
+#include "third_party/WebKit/public/web/WebTestingSupport.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "ui/base/ui_base_switches_util.h"
@@ -3833,6 +3834,10 @@ void RenderViewImpl::didClearWindowObject(WebFrame* frame) {
stats_collection_controller_->BindToJavascript(frame,
"statsCollectionController");
}
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kExposeInternalsForTesting))
jam 2013/06/26 16:46:16 nit: indent 4 spaces here. also i think in general
Rick Byers 2013/06/26 17:32:05 It is 4 spaces already, right?
jam 2013/06/26 17:38:11 i mean more indentation, so that it's four spaces
+ WebKit::WebTestingSupport::injectInternalsObject(frame);
}
void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) {
« content/public/common/content_switches.h ('K') | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698