summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 01:09:05 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 01:09:05 +0000
commita06da298d68e1bd4e3f7f25f90d4786b38a10caf (patch)
treeba7ea5449d40f076e9b4f27e3bc96208d1b42847 /content
parent9d03345197526ec8b5d93d047b422744d9efa22e (diff)
downloadchromium_src-a06da298d68e1bd4e3f7f25f90d4786b38a10caf.zip
chromium_src-a06da298d68e1bd4e3f7f25f90d4786b38a10caf.tar.gz
chromium_src-a06da298d68e1bd4e3f7f25f90d4786b38a10caf.tar.bz2
Respect NAT traversal policy in the Chromoting client plugin.
BUG=90213 TEST=manual Review URL: http://codereview.chromium.org/7453066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95185 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/pepper_plugin_delegate_impl.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc
index dbeddbd..2ce1076 100644
--- a/content/renderer/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper_plugin_delegate_impl.cc
@@ -1324,16 +1324,9 @@ void PepperPluginDelegateImpl::SubscribeToPolicyUpdates(
webkit::ppapi::PluginInstance* instance) {
subscribed_to_policy_updates_.insert(instance);
- // Call by the PPP interface via continuation to avoid reentry issues
- // with being in the call chain that includes SubscribeToPolicyUpdates().
- //
- // TODO(ajwong): Hook this up into something that gets a real policy.
- MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&PepperPluginDelegateImpl::PublishInitialPolicy,
- AsWeakPtr(),
- make_scoped_refptr(instance),
- "{\"test_policy\": \"i like bananas\"}"));
+ // TODO(ajwong): Make this only send an update to the current instance,
+ // and not all subscribed plugin instances.
+ render_view_->RequestRemoteAccessClientFirewallTraversal();
}
std::string PepperPluginDelegateImpl::ResolveProxy(const GURL& url) {