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

Unified Diff: ppapi/shared_impl/callback_tracker.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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
« no previous file with comments | « ppapi/shared_impl/array_writer.cc ('k') | ppapi/shared_impl/dictionary_var.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/callback_tracker.cc
diff --git a/ppapi/shared_impl/callback_tracker.cc b/ppapi/shared_impl/callback_tracker.cc
index 6857c4c2aca70a3ce8bb088efea81bfe2f0b4d24..feefb0e117d70aa862553838656da09763927824 100644
--- a/ppapi/shared_impl/callback_tracker.cc
+++ b/ppapi/shared_impl/callback_tracker.cc
@@ -17,17 +17,18 @@ namespace ppapi {
// CallbackTracker -------------------------------------------------------------
-CallbackTracker::CallbackTracker() {
-}
+CallbackTracker::CallbackTracker() {}
void CallbackTracker::AbortAll() {
// Iterate over a copy since |Abort()| calls |Remove()| (indirectly).
// TODO(viettrungluu): This obviously isn't so efficient.
CallbackSetMap pending_callbacks_copy = pending_callbacks_;
for (CallbackSetMap::iterator it1 = pending_callbacks_copy.begin();
- it1 != pending_callbacks_copy.end(); ++it1) {
+ it1 != pending_callbacks_copy.end();
+ ++it1) {
for (CallbackSet::iterator it2 = it1->second.begin();
- it2 != it1->second.end(); ++it2) {
+ it2 != it1->second.end();
+ ++it2) {
(*it2)->Abort();
}
}
@@ -39,7 +40,8 @@ void CallbackTracker::PostAbortForResource(PP_Resource resource_id) {
if (it1 == pending_callbacks_.end())
return;
for (CallbackSet::iterator it2 = it1->second.begin();
- it2 != it1->second.end(); ++it2) {
+ it2 != it1->second.end();
+ ++it2) {
// Post the abort.
(*it2)->PostAbort();
}
« no previous file with comments | « ppapi/shared_impl/array_writer.cc ('k') | ppapi/shared_impl/dictionary_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698