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

Unified Diff: ppapi/shared_impl/resource_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/resource.cc ('k') | ppapi/shared_impl/resource_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/resource_tracker.cc
diff --git a/ppapi/shared_impl/resource_tracker.cc b/ppapi/shared_impl/resource_tracker.cc
index 36aa2e142dc04191bb232c6f18ce2d1907a929af..9b151846f8319ec76d4120b4f293df100bdb5dd0 100644
--- a/ppapi/shared_impl/resource_tracker.cc
+++ b/ppapi/shared_impl/resource_tracker.cc
@@ -16,14 +16,12 @@
namespace ppapi {
ResourceTracker::ResourceTracker(ThreadMode thread_mode)
- : last_resource_value_(0),
- weak_ptr_factory_(this) {
+ : last_resource_value_(0), weak_ptr_factory_(this) {
if (thread_mode == SINGLE_THREADED)
thread_checker_.reset(new base::ThreadChecker);
}
-ResourceTracker::~ResourceTracker() {
-}
+ResourceTracker::~ResourceTracker() {}
void ResourceTracker::CheckThreadingPreconditions() const {
DCHECK(!thread_checker_ || thread_checker_->CalledOnValidThread());
@@ -202,7 +200,7 @@ PP_Resource ResourceTracker::AddResource(Resource* object) {
// could happen for OOP plugins where due to reentrancies in context of
// outgoing sync calls the renderer can send events after a plugin has
// exited.
- DLOG(INFO) << "Failed to find plugin instance in instance map";
+ VLOG(1) << "Failed to find plugin instance in instance map";
return 0;
}
found->second->resources.insert(new_id);
@@ -267,7 +265,6 @@ bool ResourceTracker::CanOperateOnResource(PP_Resource res) {
// same as that of |last_resource_value_|.
return ((res >> kPPIdTypeBits) & 1) == (last_resource_value_ & 1);
#endif
-
}
} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/resource.cc ('k') | ppapi/shared_impl/resource_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698