summaryrefslogtreecommitdiffstats
path: root/content/plugin/plugin_main_mac.mm
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 22:20:41 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 22:20:41 +0000
commit69211e8c01a4aacd8f8b5afd61b3d2267460dfa8 (patch)
treea1f2a24c2b8caa5e174cc68bb34dc9c0742a5000 /content/plugin/plugin_main_mac.mm
parent744ec5b2c97bf4e54526dfca4a9f2052cdd7c324 (diff)
downloadchromium_src-69211e8c01a4aacd8f8b5afd61b3d2267460dfa8.zip
chromium_src-69211e8c01a4aacd8f8b5afd61b3d2267460dfa8.tar.gz
chromium_src-69211e8c01a4aacd8f8b5afd61b3d2267460dfa8.tar.bz2
Get the path of the plugin interposing library from the embedder, since they're the ones who bundle it. Make content still work without it. This allows plugins to work inside content_shell.
BUG=90448 Review URL: https://chromiumcodereview.appspot.com/10806075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin/plugin_main_mac.mm')
-rw-r--r--content/plugin/plugin_main_mac.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/content/plugin/plugin_main_mac.mm b/content/plugin/plugin_main_mac.mm
index 6d28fd8..7bdbb42 100644
--- a/content/plugin/plugin_main_mac.mm
+++ b/content/plugin/plugin_main_mac.mm
@@ -9,6 +9,7 @@
#include "base/string_util.h"
#include "content/common/plugin_carbon_interpose_constants_mac.h"
#include "content/plugin/plugin_interpose_util_mac.h"
+#include "content/public/common/content_client.h"
#if !defined(__LP64__)
void TrimInterposeEnvironment() {
@@ -17,7 +18,7 @@ void TrimInterposeEnvironment() {
std::string interpose_list;
if (!env->GetVar(plugin_interpose_strings::kDYLDInsertLibrariesKey,
&interpose_list)) {
- NOTREACHED() << "No interposing libraries set";
+ LOG(INFO) << "No Carbon Interpose library found.";
return;
}
@@ -26,8 +27,8 @@ void TrimInterposeEnvironment() {
// need to handle are:
// 1) The whole string is "<kInterposeLibraryPath>", so just clear it, or
// 2) ":<kInterposeLibraryPath>" is the end of the string, so trim and re-set.
- std::string interpose_library_path(
- plugin_interpose_strings::kInterposeLibraryPath);
+ std::string interpose_library_path =
+ content::GetContentClient()->GetCarbonInterposePath();
DCHECK_GE(interpose_list.size(), interpose_library_path.size());
size_t suffix_offset = interpose_list.size() - interpose_library_path.size();
if (suffix_offset == 0 &&