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

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

Issue 1478633002: Removing references to //ppapi when is_android = true (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix analyze failure Created 5 years 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/common/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/shell_content_renderer_client.cc
diff --git a/content/shell/renderer/shell_content_renderer_client.cc b/content/shell/renderer/shell_content_renderer_client.cc
index 8ad5a68f3ea7e18843357fe348f8887b0cb89464..99badd7b4b2bd5cc13697a39aa39b9ee721796d3 100644
--- a/content/shell/renderer/shell_content_renderer_client.cc
+++ b/content/shell/renderer/shell_content_renderer_client.cc
@@ -8,10 +8,13 @@
#include "components/web_cache/renderer/web_cache_render_process_observer.h"
#include "content/public/renderer/render_thread.h"
#include "content/shell/renderer/shell_render_view_observer.h"
-#include "ppapi/shared_impl/ppapi_switches.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "v8/include/v8.h"
+#if defined(ENABLE_PLUGINS)
+#include "ppapi/shared_impl/ppapi_switches.h"
+#endif
+
namespace content {
ShellContentRendererClient::ShellContentRendererClient() {
@@ -32,13 +35,21 @@ void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) {
bool ShellContentRendererClient::IsPluginAllowedToUseCompositorAPI(
const GURL& url) {
+#if defined(ENABLE_PLUGINS)
return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnablePepperTesting);
+#else
+ return false;
+#endif
}
bool ShellContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() {
+#if defined(ENABLE_PLUGINS)
return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnablePepperTesting);
+#else
+ return false;
+#endif
}
} // namespace content
« no previous file with comments | « content/common/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698