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

Unified Diff: content/shell/renderer/shell_render_process_observer.cc

Issue 22799014: Add --stable-release-mode to content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a tyop Created 7 years, 4 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
« no previous file with comments | « content/shell/common/shell_switches.cc ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/shell_render_process_observer.cc
diff --git a/content/shell/renderer/shell_render_process_observer.cc b/content/shell/renderer/shell_render_process_observer.cc
index 6c445fa8030867b3bb04bba102521fe94b92a0a8..e31ad006bd80c19842333509a55bdda7c16986fd 100644
--- a/content/shell/renderer/shell_render_process_observer.cc
+++ b/content/shell/renderer/shell_render_process_observer.cc
@@ -15,10 +15,12 @@
#include "content/shell/renderer/shell_content_renderer_client.h"
#include "content/shell/renderer/webkit_test_runner.h"
#include "third_party/WebKit/public/testing/WebTestInterfaces.h"
+#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "webkit/glue/webkit_glue.h"
using WebKit::WebFrame;
+using WebKit::WebRuntimeFeatures;
using WebTestRunner::WebTestDelegate;
using WebTestRunner::WebTestInterfaces;
@@ -68,6 +70,10 @@ void ShellRenderProcessObserver::WebKitInitialized() {
webkit_glue::SetJavaScriptFlags(" --expose-gc");
RenderThread::Get()->RegisterExtension(extensions_v8::GCExtension::Get());
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kStableReleaseMode))
jochen (gone - plz use gerrit) 2013/08/20 08:24:33 nit. add { } please
Julien - ping for review 2013/08/20 14:49:36 Done.
+ WebRuntimeFeatures::enableTestOnlyFeatures(true);
+
test_interfaces_.reset(new WebTestInterfaces);
test_interfaces_->resetAll();
}
« no previous file with comments | « content/shell/common/shell_switches.cc ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698