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

Unified Diff: chromecast/shell/renderer/cast_content_renderer_client.cc

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional presubmit clean-up. Created 6 years, 5 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: chromecast/shell/renderer/cast_content_renderer_client.cc
diff --git a/chromecast/shell/renderer/cast_content_renderer_client.cc b/chromecast/shell/renderer/cast_content_renderer_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c3855a7fc90c59c7f04aa5bd2193563e723afdc6
--- /dev/null
+++ b/chromecast/shell/renderer/cast_content_renderer_client.cc
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromecast/shell/renderer/cast_content_renderer_client.h"
+
+#include <sys/sysinfo.h>
+
+#include "base/command_line.h"
+#include "base/memory/memory_pressure_listener.h"
+#include "content/public/common/content_switches.h"
+#include "crypto/nss_util.h"
+
+namespace chromecast {
+namespace shell {
+
+void CastContentRendererClient::RenderThreadStarted() {
+#if defined(USE_NSS)
+ // Note: Copied from chrome_render_process_observer.cc to fix b/8676652.
+ //
+ // On platforms where the system NSS shared libraries are used,
+ // initialize NSS now because it won't be able to load the .so's
+ // after entering the sandbox.
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
+ crypto::InitNSSSafely();
+#endif
+}
+
+void CastContentRendererClient::AddKeySystems(
+ std::vector<content::KeySystemInfo>* key_systems) {
+}
+
+} // namespace shell
+} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698