Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1816)

Unified Diff: ppapi/cpp/url_loader.cc

Issue 7237039: Remove PPBoolToBool and BoolToPPBool and use PP_FromBool and PP_ToBool instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/url_loader.cc
===================================================================
--- ppapi/cpp/url_loader.cc (revision 91773)
+++ ppapi/cpp/url_loader.cc (working copy)
@@ -6,7 +6,6 @@
#include "ppapi/c/ppb_url_loader.h"
#include "ppapi/c/pp_errors.h"
-#include "ppapi/cpp/common.h"
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/dev/file_ref_dev.h"
#include "ppapi/cpp/instance.h"
@@ -66,7 +65,7 @@
int64_t* total_bytes_to_be_sent) const {
if (!has_interface<PPB_URLLoader>())
return false;
- return PPBoolToBool(get_interface<PPB_URLLoader>()->GetUploadProgress(
+ return PP_ToBool(get_interface<PPB_URLLoader>()->GetUploadProgress(
pp_resource(), bytes_sent, total_bytes_to_be_sent));
}
@@ -75,9 +74,8 @@
int64_t* total_bytes_to_be_received) const {
if (!has_interface<PPB_URLLoader>())
return false;
- return PPBoolToBool(
- get_interface<PPB_URLLoader>()->GetDownloadProgress(
- pp_resource(), bytes_received, total_bytes_to_be_received));
+ return PP_ToBool(get_interface<PPB_URLLoader>()->GetDownloadProgress(
+ pp_resource(), bytes_received, total_bytes_to_be_received));
}
URLResponseInfo URLLoader::GetResponseInfo() const {

Powered by Google App Engine
This is Rietveld 408576698