| 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
|
|
|