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

Unified Diff: ppapi/shared_impl/resource.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.h ('k') | ppapi/shared_impl/resource_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/resource.cc
diff --git a/ppapi/shared_impl/resource.cc b/ppapi/shared_impl/resource.cc
index 2c409618c006aec83b4d7c196c23df067b2d3737..e7ed70820c1addb2b39919f6473bb7aad4e35c97 100644
--- a/ppapi/shared_impl/resource.cc
+++ b/ppapi/shared_impl/resource.cc
@@ -44,9 +44,7 @@ Resource::Resource(Untracked) {
pp_resource_ = PpapiGlobals::Get()->GetResourceTracker()->AddResource(this);
}
-Resource::~Resource() {
- RemoveFromResourceTracker();
-}
+Resource::~Resource() { RemoveFromResourceTracker(); }
PP_Resource Resource::GetReference() {
PpapiGlobals::Get()->GetResourceTracker()->AddRefResource(pp_resource());
@@ -75,8 +73,8 @@ void Resource::OnReplyReceived(const proxy::ResourceMessageReplyParams& params,
}
void Resource::Log(PP_LogLevel level, const std::string& message) {
- PpapiGlobals::Get()->LogWithSource(pp_instance(), level, std::string(),
- message);
+ PpapiGlobals::Get()->LogWithSource(
+ pp_instance(), level, std::string(), message);
}
void Resource::RemoveFromResourceTracker() {
@@ -89,4 +87,3 @@ FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_TYPE_GETTER)
#undef DEFINE_TYPE_GETTER
} // namespace ppapi
-
« no previous file with comments | « ppapi/shared_impl/resource.h ('k') | ppapi/shared_impl/resource_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698