Cherry pick "Fixes bug in GinJavaBridgeDispatcherHost"

Original description:
Fixes bug in GinJavaBridgeDispatcherHost

My try job kept failing on android and I finally tracked it down to
this code. GinJavaBridgeDispatcherHost::RemoveNamedObject may be
invoked with a value that comes from named_objects_ (see
AddNamedObject). RemoveNamedObject removes from named_object_ and then
uses the passed in value. If this happens |name| is no longer valid
and shouldn't be used.



Bug: 17973356
Change-Id: I71ecab488994362f02ca7dbbe9a35e9514ee33fd
1 file changed