summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:34:43 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:34:43 +0000
commit9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa (patch)
tree9ae9869615bb86a416adec42d4082298e165f0cf /chrome
parente307f57e183fdc76986c918d37f284ab2940c343 (diff)
downloadchromium_src-9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa.zip
chromium_src-9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa.tar.gz
chromium_src-9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa.tar.bz2
Coverity: Initialize member variables.
CID=1631,9315,9316,9447,10912,13053,13396,13397,13449 BUG=none TEST=none Review URL: http://codereview.chromium.org/3934001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/dialogs_gtk.cc4
-rw-r--r--chrome/browser/gtk/notifications/balloon_view_host_gtk.cc3
-rw-r--r--chrome/browser/login_prompt_gtk.cc5
-rw-r--r--chrome/browser/zygote_host_linux.cc6
-rw-r--r--chrome/common/extensions/extension.cc1
-rw-r--r--chrome/common/plugin_messages.cc11
-rw-r--r--chrome/common/plugin_messages.h2
-rw-r--r--chrome/default_plugin/plugin_impl_gtk.cc5
-rw-r--r--chrome/service/cloud_print/print_system_cups.cc4
-rw-r--r--chrome/test/automation/autocomplete_edit_proxy.h31
10 files changed, 48 insertions, 24 deletions
diff --git a/chrome/browser/gtk/dialogs_gtk.cc b/chrome/browser/gtk/dialogs_gtk.cc
index d365360..bd0c8b6 100644
--- a/chrome/browser/gtk/dialogs_gtk.cc
+++ b/chrome/browser/gtk/dialogs_gtk.cc
@@ -158,7 +158,9 @@ SelectFileDialog* SelectFileDialog::Create(Listener* listener) {
}
SelectFileDialogImpl::SelectFileDialogImpl(Listener* listener)
- : listener_(listener) {
+ : listener_(listener),
+ file_type_index_(0),
+ preview_(NULL) {
if (!last_saved_path_) {
last_saved_path_ = new FilePath();
last_opened_path_ = new FilePath();
diff --git a/chrome/browser/gtk/notifications/balloon_view_host_gtk.cc b/chrome/browser/gtk/notifications/balloon_view_host_gtk.cc
index 3a3afee..4bd7482 100644
--- a/chrome/browser/gtk/notifications/balloon_view_host_gtk.cc
+++ b/chrome/browser/gtk/notifications/balloon_view_host_gtk.cc
@@ -10,7 +10,8 @@
#include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
BalloonViewHost::BalloonViewHost(Balloon* balloon)
- : BalloonHost(balloon) {
+ : BalloonHost(balloon),
+ render_widget_host_view_(NULL) {
}
void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) {
diff --git a/chrome/browser/login_prompt_gtk.cc b/chrome/browser/login_prompt_gtk.cc
index b238376..77dab23 100644
--- a/chrome/browser/login_prompt_gtk.cc
+++ b/chrome/browser/login_prompt_gtk.cc
@@ -36,7 +36,10 @@ class LoginHandlerGtk : public LoginHandler,
public ConstrainedWindowGtkDelegate {
public:
LoginHandlerGtk(net::AuthChallengeInfo* auth_info, URLRequest* request)
- : LoginHandler(auth_info, request) {
+ : LoginHandler(auth_info, request),
+ username_entry_(NULL),
+ password_entry_(NULL),
+ ok_(NULL) {
}
virtual ~LoginHandlerGtk() {
diff --git a/chrome/browser/zygote_host_linux.cc b/chrome/browser/zygote_host_linux.cc
index d88c9be..5536eaf 100644
--- a/chrome/browser/zygote_host_linux.cc
+++ b/chrome/browser/zygote_host_linux.cc
@@ -53,10 +53,12 @@ static void SaveSUIDUnsafeEnvironmentVariables() {
}
ZygoteHost::ZygoteHost()
- : pid_(-1),
+ : control_fd_(-1),
+ pid_(-1),
init_(false),
using_suid_sandbox_(false),
- have_read_sandbox_status_word_(false) {
+ have_read_sandbox_status_word_(false),
+ sandbox_status_(0) {
}
ZygoteHost::~ZygoteHost() {
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index f86a910..fbb262f 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -254,6 +254,7 @@ const char Extension::kOldUnlimitedStoragePermission[] = "unlimited_storage";
Extension::StaticData::StaticData()
: incognito_split_mode(false),
+ location(INVALID),
converted_from_user_script(false),
is_theme(false),
is_app(false),
diff --git a/chrome/common/plugin_messages.cc b/chrome/common/plugin_messages.cc
index aeb3905..e152728 100644
--- a/chrome/common/plugin_messages.cc
+++ b/chrome/common/plugin_messages.cc
@@ -57,10 +57,13 @@ NPVariant_Param::~NPVariant_Param() {
}
PluginMsg_UpdateGeometry_Param::PluginMsg_UpdateGeometry_Param()
- : transparent(false)
-#if defined(OS_MACOSX)
- , ack_key(-1)
-#endif
+ : transparent(false),
+#if !defined(OS_MACOSX)
+ windowless_buffer(NULL),
+ background_buffer(NULL)
+#else
+ ack_key(-1)
+#endif // !defined(OS_MACOSX)
{
}
diff --git a/chrome/common/plugin_messages.h b/chrome/common/plugin_messages.h
index 638462f..86df200 100644
--- a/chrome/common/plugin_messages.h
+++ b/chrome/common/plugin_messages.h
@@ -111,9 +111,9 @@ struct PluginMsg_UpdateGeometry_Param {
gfx::Rect window_rect;
gfx::Rect clip_rect;
+ bool transparent;
TransportDIB::Handle windowless_buffer;
TransportDIB::Handle background_buffer;
- bool transparent;
#if defined(OS_MACOSX)
// This field contains a key that the plug-in process is expected to return
diff --git a/chrome/default_plugin/plugin_impl_gtk.cc b/chrome/default_plugin/plugin_impl_gtk.cc
index 7179858..ae7dfb2 100644
--- a/chrome/default_plugin/plugin_impl_gtk.cc
+++ b/chrome/default_plugin/plugin_impl_gtk.cc
@@ -20,7 +20,10 @@
// implemented.
PluginInstallerImpl::PluginInstallerImpl(int16 mode)
- : container_(NULL) {
+ : instance_(NULL),
+ plugin_install_stream_(NULL),
+ plugin_installer_state_(PluginInstallerStateUndefined),
+ container_(NULL) {
}
PluginInstallerImpl::~PluginInstallerImpl() {
diff --git a/chrome/service/cloud_print/print_system_cups.cc b/chrome/service/cloud_print/print_system_cups.cc
index d4d5a9a..b8a7378 100644
--- a/chrome/service/cloud_print/print_system_cups.cc
+++ b/chrome/service/cloud_print/print_system_cups.cc
@@ -165,7 +165,9 @@ class PrintSystemCUPS : public PrintSystem {
public:
explicit PrinterWatcherCUPS(PrintSystemCUPS* print_system,
const std::string& printer_name)
- : printer_name_(printer_name), print_system_(print_system) {
+ : printer_name_(printer_name),
+ delegate_(NULL),
+ print_system_(print_system) {
}
// PrintSystem::PrinterWatcher interface
diff --git a/chrome/test/automation/autocomplete_edit_proxy.h b/chrome/test/automation/autocomplete_edit_proxy.h
index cfcf291..d9af03d 100644
--- a/chrome/test/automation/autocomplete_edit_proxy.h
+++ b/chrome/test/automation/autocomplete_edit_proxy.h
@@ -22,19 +22,26 @@
// autocomplete provider without the hassle of serializing it.
struct AutocompleteMatchData {
public:
- AutocompleteMatchData() {}
+ AutocompleteMatchData()
+ : relevance(0),
+ deletable(false),
+ inline_autocomplete_offset(0),
+ is_history_what_you_typed_match(false),
+ starred(false) {
+ }
+
explicit AutocompleteMatchData(const AutocompleteMatch& match)
- : provider_name(match.provider->name()),
- relevance(match.relevance),
- deletable(match.deletable),
- fill_into_edit(match.fill_into_edit),
- inline_autocomplete_offset(match.inline_autocomplete_offset),
- destination_url(match.destination_url),
- contents(match.contents),
- description(match.description),
- is_history_what_you_typed_match(match.is_history_what_you_typed_match),
- type(AutocompleteMatch::TypeToString(match.type)),
- starred(match.starred) {
+ : provider_name(match.provider->name()),
+ relevance(match.relevance),
+ deletable(match.deletable),
+ fill_into_edit(match.fill_into_edit),
+ inline_autocomplete_offset(match.inline_autocomplete_offset),
+ destination_url(match.destination_url),
+ contents(match.contents),
+ description(match.description),
+ is_history_what_you_typed_match(match.is_history_what_you_typed_match),
+ type(AutocompleteMatch::TypeToString(match.type)),
+ starred(match.starred) {
}
std::string provider_name;