| Index: content/browser/renderer_host/java/java_bound_object.cc
|
| diff --git a/content/browser/renderer_host/java/java_bound_object.cc b/content/browser/renderer_host/java/java_bound_object.cc
|
| index 4ea4878295d69dfb043efe47ef9ded3469801446..3dab6cbef419796e4c7f3f201dcafa70d903cdd6 100644
|
| --- a/content/browser/renderer_host/java/java_bound_object.cc
|
| +++ b/content/browser/renderer_host/java/java_bound_object.cc
|
| @@ -194,6 +194,8 @@ bool CallJNIMethod(jobject object, const JavaType& return_type, jmethodID id,
|
| // Take a copy and pass ownership to the variant. We must allocate using
|
| // NPN_MemAlloc, to match NPN_ReleaseVariant, which uses NPN_MemFree.
|
| size_t length = str.length();
|
| + // TODO(thakis): This causes linker errors in a components build. Figure
|
| + // out what to do.
|
| char* buffer = static_cast<char*>(NPN_MemAlloc(length));
|
| str.copy(buffer, length, 0);
|
| STRINGN_TO_NPVARIANT(buffer, length, *result);
|
|
|