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

Unified Diff: content/renderer/render_process_impl.cc

Issue 7104144: Get rid of the following dependencies from content: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 6 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
« no previous file with comments | « content/renderer/render_process_impl.h ('k') | content/renderer/render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_process_impl.cc
===================================================================
--- content/renderer/render_process_impl.cc (revision 88923)
+++ content/renderer/render_process_impl.cc (working copy)
@@ -25,8 +25,6 @@
#include "content/renderer/render_view.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_message_utils.h"
-#include "media/base/media.h"
-#include "media/base/media_switches.h"
#include "skia/ext/platform_canvas.h"
#include "ui/gfx/surface/transport_dib.h"
#include "webkit/plugins/npapi/plugin_instance.h"
@@ -74,22 +72,6 @@
webkit_glue::SetJavaScriptFlags(
command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
}
-
- // Note that under Linux, the media library will normally already have
- // been initialized by the Zygote before this instance became a Renderer.
- FilePath media_path =
- content::GetContentClient()->renderer()->GetMediaLibraryPath();
- if (!media_path.empty())
- media::InitializeMediaLibrary(media_path);
-
-#if !defined(OS_MACOSX)
- // TODO(hclam): Add more checks here. Currently this is not used.
- if (media::IsMediaLibraryInitialized() &&
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableOpenMax)) {
- media::InitializeOpenMaxLibrary(media_path);
- }
-#endif
}
RenderProcessImpl::~RenderProcessImpl() {
@@ -195,10 +177,6 @@
return in_process_plugins_;
}
-bool RenderProcessImpl::HasInitializedMediaLibrary() const {
- return media::IsMediaLibraryInitialized();
-}
-
bool RenderProcessImpl::GetTransportDIBFromCache(TransportDIB** mem,
size_t size) {
// look for a cached object that is suitable for the requested size.
« no previous file with comments | « content/renderer/render_process_impl.h ('k') | content/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698