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

Unified Diff: trunk/src/third_party/libjingle/overrides/init_webrtc.cc

Issue 14615011: Revert 198675 "Reland 198495 for Windows." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | « trunk/src/third_party/libjingle/libjingle.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/third_party/libjingle/overrides/init_webrtc.cc
===================================================================
--- trunk/src/third_party/libjingle/overrides/init_webrtc.cc (revision 198806)
+++ trunk/src/third_party/libjingle/overrides/init_webrtc.cc (working copy)
@@ -51,21 +51,6 @@
return path;
}
-#if !defined(OS_WIN)
-// On platforms other than Windows (i.e. mac and linux based ones),
-// the location of the .so in the installed layout will be different relative
-// to the loading module than it is in the build directory.
-// GetLibPeerConnectionPath returns the path as it will be in the installed
-// layout, but to support isolated tests, we need to also support loading the
-// so in the build layout, which we do here.
-// On Windows, these layouts are the same.
-static base::FilePath GetLibPeerConnectionPathForTests() {
- base::FilePath path;
- CHECK(PathService::Get(base::DIR_MODULE, &path));
- return path.Append(FILE_PATH_LITERAL("libpeerconnection.so"));
-}
-#endif
-
bool InitializeWebRtcModule() {
if (g_create_webrtc_media_engine)
return true; // InitializeWebRtcModule has already been called.
@@ -76,10 +61,6 @@
std::string error;
static base::NativeLibrary lib =
base::LoadNativeLibrary(path, &error);
-#if !defined(OS_WIN)
- if (!lib)
- lib = base::LoadNativeLibrary(GetLibPeerConnectionPathForTests(), &error);
-#endif
CHECK(lib);
InitializeModuleFunction initialize_module =
« no previous file with comments | « trunk/src/third_party/libjingle/libjingle.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698