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

Side by Side Diff: ppapi/proxy/ppb_var_deprecated_proxy.cc

Issue 9006028: Coverity fixes for uninitialized vars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing braces Created 8 years, 12 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_var_tracker.cc ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 5 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
6 6
7 #include <stdlib.h> // For malloc 7 #include <stdlib.h> // For malloc
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 } 496 }
497 497
498 void PPB_Var_Deprecated_Proxy::SetAllowPluginReentrancy() { 498 void PPB_Var_Deprecated_Proxy::SetAllowPluginReentrancy() {
499 if (dispatcher()->IsPlugin()) 499 if (dispatcher()->IsPlugin())
500 NOTREACHED(); 500 NOTREACHED();
501 else 501 else
502 static_cast<HostDispatcher*>(dispatcher())->set_allow_plugin_reentrancy(); 502 static_cast<HostDispatcher*>(dispatcher())->set_allow_plugin_reentrancy();
503 } 503 }
504 504
505 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) { 505 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) {
506 PP_Var var; 506 PP_Var var = { PP_VARTYPE_OBJECT };
507 var.type = PP_VARTYPE_OBJECT;
508 var.value.as_id = object_id; 507 var.value.as_id = object_id;
509 ppb_var_impl_->Release(var); 508 ppb_var_impl_->Release(var);
510 } 509 }
511 510
512 } // namespace proxy 511 } // namespace proxy
513 } // namespace ppapi 512 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_var_tracker.cc ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698