From 00d320a6e403c645dc00d47217028aef5f2792a0 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 14 Feb 2012 00:27:04 +0000 Subject: Make a global enum to differentiate impl & proxy. Use this in resource constructors and remove all the old weird structs that we used to tell which one to call. This removes some extra code we had to deal with this. Review URL: http://codereview.chromium.org/9391013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121781 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/ppp_instance_proxy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ppapi/proxy/ppp_instance_proxy.cc') diff --git a/ppapi/proxy/ppp_instance_proxy.cc b/ppapi/proxy/ppp_instance_proxy.cc index 8ad8ae4..083cc91 100644 --- a/ppapi/proxy/ppp_instance_proxy.cc +++ b/ppapi/proxy/ppp_instance_proxy.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -239,7 +239,7 @@ void PPP_Instance_Proxy::OnPluginMsgDidChangeView( ScopedPPResource resource( ScopedPPResource::PassRef(), - (new PPB_View_Shared(PPB_View_Shared::InitAsProxy(), + (new PPB_View_Shared(OBJECT_IS_PROXY, instance, new_data))->GetReference()); combined_interface_->DidChangeView(instance, resource, -- cgit v1.1