diff options
author | polina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-11 22:46:44 +0000 |
---|---|---|
committer | polina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-11 22:46:44 +0000 |
commit | 996bdbda28035f7f68955525625c998290706281 (patch) | |
tree | dfc61c5633359f02e40421e0240aeac25753b642 /ppapi/example | |
parent | a965ca65e8170b3d685b7ca9185929fe3915b7f9 (diff) | |
download | chromium_src-996bdbda28035f7f68955525625c998290706281.zip chromium_src-996bdbda28035f7f68955525625c998290706281.tar.gz chromium_src-996bdbda28035f7f68955525625c998290706281.tar.bz2 |
1;2cReplace PP_ERROR_WOULDBLOCK with PP_OK_COMPLETIONPENDING. Improve error code comments. Update all code that uses this error code. Keep the old code for now flagging it as deprecated. Update copyrights.
BUG=none
TEST=bots
Review URL: http://codereview.chromium.org/6814033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/example')
-rw-r--r-- | ppapi/example/example.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc index 1eef073..d660bc4 100644 --- a/ppapi/example/example.cc +++ b/ppapi/example/example.cc @@ -107,7 +107,7 @@ class MyFetcher { pp::CompletionCallback callback = callback_factory_.NewCallback(&MyFetcher::DidOpen); int rv = loader_.Open(request, callback); - if (rv != PP_ERROR_WOULDBLOCK) + if (rv != PP_OK_COMPLETIONPENDING) callback.Run(rv); } @@ -124,7 +124,7 @@ class MyFetcher { pp::CompletionCallback callback = callback_factory_.NewCallback(&MyFetcher::DidRead); int rv = loader_.ReadResponseBody(buf_, sizeof(buf_), callback); - if (rv != PP_ERROR_WOULDBLOCK) + if (rv != PP_OK_COMPLETIONPENDING) callback.Run(rv); } |