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

Unified Diff: ppapi/proxy/ppb_flash_file_proxy.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/proxy/ppb_flash_file_proxy.cc
===================================================================
--- ppapi/proxy/ppb_flash_file_proxy.cc (revision 91773)
+++ ppapi/proxy/ppb_flash_file_proxy.cc (working copy)
@@ -482,7 +482,7 @@
char* name_copy = new char[source.name.size() + 1];
memcpy(name_copy, source.name.c_str(), source.name.size() + 1);
dest->name = name_copy;
- dest->is_dir = BoolToPPBool(source.is_dir);
+ dest->is_dir = PP_FromBool(source.is_dir);
}
return result;
@@ -611,7 +611,7 @@
entries->resize(contents->count);
for (int32_t i = 0; i < contents->count; i++) {
(*entries)[i].name.assign(contents->entries[i].name);
- (*entries)[i].is_dir = PPBoolToBool(contents->entries[i].is_dir);
+ (*entries)[i].is_dir = PP_ToBool(contents->entries[i].is_dir);
}
ppb_flash_file_module_local_target()->FreeDirContents(instance, contents);
}

Powered by Google App Engine
This is Rietveld 408576698