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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromecast/shell/renderer/cast_content_renderer_client.h"
6
7 #include <sys/sysinfo.h>
8
9 #include "base/command_line.h"
10 #include "base/memory/memory_pressure_listener.h"
11 #include "content/public/common/content_switches.h"
12 #include "crypto/nss_util.h"
13
14 namespace chromecast {
15 namespace shell {
16
17 void CastContentRendererClient::RenderThreadStarted() {
18 #if defined(USE_NSS)
19 // Note: Copied from chrome_render_process_observer.cc to fix b/8676652.
20 //
21 // On platforms where the system NSS shared libraries are used,
22 // initialize NSS now because it won't be able to load the .so's
23 // after entering the sandbox.
24 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
25 crypto::InitNSSSafely();
26 #endif
27 }
28
29 void CastContentRendererClient::AddKeySystems(
30 std::vector<content::KeySystemInfo>* key_systems) {
31 }
32
33 } // namespace shell
34 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698