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

Unified Diff: chrome/renderer/chrome_render_process_observer.cc

Issue 1820933002: Add Ignition to about:flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update description and move to using feature-api. Created 4 years, 9 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 | « chrome/common/chrome_features.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_process_observer.cc
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index e8daff7e736b2f2bfc706b243a9f9d2a802cfc1a..fe532ac6f960fc55b75e44292ae52bd95b495163 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -27,6 +27,7 @@
#include "base/threading/platform_thread.h"
#include "build/build_config.h"
#include "chrome/common/child_process_logging.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/media/media_resource_provider.h"
@@ -261,6 +262,11 @@ ChromeRenderProcessObserver::ChromeRenderProcessObserver()
v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size()));
}
+ if (base::FeatureList::IsEnabled(features::kV8Ignition)) {
+ std::string flag("--ignition");
+ v8::V8::SetFlagsFromString(flag.c_str(), static_cast<int>(flag.size()));
jochen (gone - plz use gerrit) 2016/03/30 16:13:34 you could move this to gin/isolate_holder.cc - the
Alexei Svitkine (slow) 2016/03/30 17:02:44 Unfortunately, this is not possible currently due
+ }
+
RenderThread* thread = RenderThread::Get();
resource_delegate_.reset(new RendererResourceDelegate());
thread->SetResourceDispatcherDelegate(resource_delegate_.get());
« no previous file with comments | « chrome/common/chrome_features.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698