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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 886153003: Reorganize ChannelMojo related flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 92a6cd515bded43a2ff0e3dfdf953f0ddba134d5..2914c9c299c19593c58243728a37e93c3b2b9ea4 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -70,6 +70,7 @@
#include "content/public/common/content_constants.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/mojo_channel_switches.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/url_constants.h"
#include "content/public/renderer/content_renderer_client.h"
@@ -344,12 +345,6 @@ void CreateRenderFrameSetup(mojo::InterfaceRequest<RenderFrameSetup> request) {
mojo::BindToRequest(new RenderFrameSetupImpl(), &request);
}
-bool ShouldUseMojoChannel() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableRendererMojoChannel) ||
- IPC::ChannelMojo::ShouldBeUsed();
-}
-
blink::WebGraphicsContext3D::Attributes GetOffscreenAttribs() {
blink::WebGraphicsContext3D::Attributes attributes;
attributes.shareResources = true;

Powered by Google App Engine
This is Rietveld 408576698