summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authoryuzo@chromium.org <yuzo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-22 04:28:50 +0000
committeryuzo@chromium.org <yuzo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-22 04:28:50 +0000
commitd7abd05db588e8c35e4858e1fe74754b21986c86 (patch)
treec77801e2cda443ead783c0b07f46913af2ece76d /ppapi
parent9707c582045837c8dc27b5dce2ad910244935285 (diff)
downloadchromium_src-d7abd05db588e8c35e4858e1fe74754b21986c86.zip
chromium_src-d7abd05db588e8c35e4858e1fe74754b21986c86.tar.gz
chromium_src-d7abd05db588e8c35e4858e1fe74754b21986c86.tar.bz2
Fix URLLoader error in PPAPI example program.
Currenty pp:URLRequestInfo created with the default constructor is passed to pp:URLLoader and causes PP_ERROR_BADARGUMENT. Use the constructor that takes PP_Instance instead. BUG=none TEST=run ppapi example Review URL: http://codereview.chromium.org/7686004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/example/example.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc
index 2b5ab76..1eec317 100644
--- a/ppapi/example/example.cc
+++ b/ppapi/example/example.cc
@@ -97,10 +97,10 @@ class MyFetcher {
callback_factory_.Initialize(this);
}
- void Start(const pp::InstancePrivate& instance,
+ void Start(pp::InstancePrivate& instance,
const pp::Var& url,
MyFetcherClient* client) {
- pp::URLRequestInfo request;
+ pp::URLRequestInfo request(&instance);
request.SetURL(url);
request.SetMethod("GET");