summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_process.cc
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 11:49:25 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 11:49:25 +0000
commit1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5 (patch)
tree7138c88a5e12fc12ff0c27d16a72c71acb91b68e /chrome/service/service_process.cc
parent7c24af349c6756ada9398c77783794c067a639cc (diff)
downloadchromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.zip
chromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.tar.gz
chromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.tar.bz2
Move media library path resolution into Chrome path provider.
BUG=None TEST=None Review URL: http://codereview.chromium.org/6537022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_process.cc')
-rw-r--r--chrome/service/service_process.cc27
1 files changed, 7 insertions, 20 deletions
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
index 1335936..d559c46 100644
--- a/chrome/service/service_process.cc
+++ b/chrome/service/service_process.cc
@@ -175,23 +175,14 @@ bool ServiceProcess::Initialize(MessageLoopForUI* message_loop,
#if defined(ENABLE_REMOTING)
// Load media codecs, required by the Chromoting host
- bool initialized_media_library = false;
-#if defined(OS_MACOSX)
- FilePath bundle_path = base::mac::MainAppBundlePath();
-
- initialized_media_library =
- media::InitializeMediaLibrary(bundle_path.Append("Libraries"));
-#else
FilePath module_path;
- initialized_media_library =
- PathService::Get(base::DIR_MODULE, &module_path) &&
- media::InitializeMediaLibrary(module_path);
-#endif
-
- // Initialize chromoting host manager.
- remoting_host_manager_ = new remoting::ChromotingHostManager(this);
- remoting_host_manager_->Initialize(message_loop,
- file_thread_->message_loop_proxy());
+ if (PathService::Get(chrome::DIR_MEDIA_LIBS, &module_path) &&
+ media::InitializeMediaLibrary(module_path)) {
+ // Initialize chromoting host manager.
+ remoting_host_manager_ = new remoting::ChromotingHostManager(this);
+ remoting_host_manager_->Initialize(message_loop,
+ file_thread_->message_loop_proxy());
+ }
#endif // ENABLE_REMOTING
// Enable Cloud Print if needed. First check the command-line.
@@ -359,7 +350,3 @@ ServiceProcess::~ServiceProcess() {
Teardown();
g_service_process = NULL;
}
-
-// Disable refcounting for runnable method because it is really not needed
-// when we post tasks on the main message loop.
-DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcess);