[M108 Aura Migration][NaCl][PPFwk] Add error logs + SVACE/DLOG/Static analysis fix
[platform/framework/web/chromium-efl.git] / ppapi / proxy / uma_private_resource.cc
index 1590097..994c884 100644 (file)
@@ -5,6 +5,7 @@
 #include "ppapi/proxy/uma_private_resource.h"
 
 #include "base/bind.h"
+#include "base/logging.h"
 #include "ppapi/proxy/ppapi_messages.h"
 #include "ppapi/proxy/resource_message_params.h"
 #include "ppapi/shared_impl/var.h"
@@ -87,8 +88,10 @@ void UMAPrivateResource::HistogramEnumeration(
 int32_t UMAPrivateResource::IsCrashReportingEnabled(
     PP_Instance instance,
     scoped_refptr<TrackedCallback> callback) {
-  if (pending_callback_.get() != NULL)
+  if (pending_callback_.get() != NULL) {
+    LOG(ERROR) << "CrashReporting pending";
     return PP_ERROR_INPROGRESS;
+  }
   pending_callback_ = callback;
   Call<PpapiPluginMsg_UMA_IsCrashReportingEnabledReply>(
       RENDERER, PpapiHostMsg_UMA_IsCrashReportingEnabled(),