diff options
-rw-r--r-- | chrome/browser/bug_report_util.cc | 2 | ||||
-rw-r--r-- | chrome/browser/child_process_launcher.cc | 4 | ||||
-rw-r--r-- | chrome/browser/process_singleton_mac.cc | 4 | ||||
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_store_file.cc | 4 | ||||
-rw-r--r-- | chrome/browser/speech/speech_recognizer.cc | 3 | ||||
-rw-r--r-- | chrome/browser/sync/syncable/syncable.cc | 4 | ||||
-rw-r--r-- | chrome/plugin/chrome_plugin_host.cc | 9 | ||||
-rw-r--r-- | chrome/renderer/media/audio_renderer_impl.cc | 4 | ||||
-rw-r--r-- | chrome/renderer/pepper_devices.h | 5 | ||||
-rw-r--r-- | chrome/service/cloud_print/cloud_print_proxy.cc | 4 |
10 files changed, 33 insertions, 10 deletions
diff --git a/chrome/browser/bug_report_util.cc b/chrome/browser/bug_report_util.cc index adf2637..fdbbe67 100644 --- a/chrome/browser/bug_report_util.cc +++ b/chrome/browser/bug_report_util.cc @@ -127,7 +127,7 @@ class BugReportUtil::PostCleanup : public URLFetcher::Delegate { BugReportUtil::PostCleanup::PostCleanup(Profile* profile) : profile_(profile) { #else - BugReportUtil::PostCleanup::PostCleanup() { + BugReportUtil::PostCleanup::PostCleanup() : profile_(NULL) { #endif } diff --git a/chrome/browser/child_process_launcher.cc b/chrome/browser/child_process_launcher.cc index efef933..f215084 100644 --- a/chrome/browser/child_process_launcher.cc +++ b/chrome/browser/child_process_launcher.cc @@ -42,7 +42,9 @@ class ChildProcessLauncher::Context : public base::RefCountedThreadSafe<ChildProcessLauncher::Context> { public: Context() - : starting_(true) + : client_(NULL), + client_thread_id_(BrowserThread::UI), + starting_(true) #if defined(OS_LINUX) , zygote_(false) #endif diff --git a/chrome/browser/process_singleton_mac.cc b/chrome/browser/process_singleton_mac.cc index 23d317c..b6d2498 100644 --- a/chrome/browser/process_singleton_mac.cc +++ b/chrome/browser/process_singleton_mac.cc @@ -19,7 +19,9 @@ // and, once again, the Launch Services system. We have no need to manage this // ourselves. -ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) { +ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) + : locked_(false), + foreground_window_(NULL) { // This space intentionally left blank. } diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.cc b/chrome/browser/safe_browsing/safe_browsing_store_file.cc index a30bf51..a5cec62 100644 --- a/chrome/browser/safe_browsing/safe_browsing_store_file.cc +++ b/chrome/browser/safe_browsing/safe_browsing_store_file.cc @@ -179,8 +179,10 @@ void SafeBrowsingStoreFile::RecordFormatEvent(FormatEventType event_type) { SafeBrowsingStoreFile::SafeBrowsingStoreFile() : chunks_written_(0), file_(NULL), - empty_(false) { + empty_(false), + corruption_seen_(false) { } + SafeBrowsingStoreFile::~SafeBrowsingStoreFile() { Close(); } diff --git a/chrome/browser/speech/speech_recognizer.cc b/chrome/browser/speech/speech_recognizer.cc index f1d09b7..a6913d4 100644 --- a/chrome/browser/speech/speech_recognizer.cc +++ b/chrome/browser/speech/speech_recognizer.cc @@ -70,6 +70,8 @@ class SpeexEncoder { }; SpeexEncoder::SpeexEncoder() { + // speex_bits_init() does not initialize all of the |bits_| struct. + memset(&bits_, 0, sizeof(bits_)); speex_bits_init(&bits_); encoder_state_ = speex_encoder_init(&speex_wb_mode); DCHECK(encoder_state_); @@ -79,6 +81,7 @@ SpeexEncoder::SpeexEncoder() { speex_encoder_ctl(encoder_state_, SPEEX_SET_QUALITY, &quality); int vbr = 1; speex_encoder_ctl(encoder_state_, SPEEX_SET_VBR, &vbr); + memset(encoded_frame_data_, 0, sizeof(encoded_frame_data_)); } SpeexEncoder::~SpeexEncoder() { diff --git a/chrome/browser/sync/syncable/syncable.cc b/chrome/browser/sync/syncable/syncable.cc index 5545589..26d6f7b 100644 --- a/chrome/browser/sync/syncable/syncable.cc +++ b/chrome/browser/sync/syncable/syncable.cc @@ -157,7 +157,9 @@ bool LessPathNames::operator() (const string& a, const string& b) const { /////////////////////////////////////////////////////////////////////////// // EntryKernel -EntryKernel::EntryKernel() : dirty_(false) {} +EntryKernel::EntryKernel() : dirty_(false) { + memset(int64_fields, 0, sizeof(int64_fields)); +} EntryKernel::~EntryKernel() {} diff --git a/chrome/plugin/chrome_plugin_host.cc b/chrome/plugin/chrome_plugin_host.cc index ff9503f..e23b273 100644 --- a/chrome/plugin/chrome_plugin_host.cc +++ b/chrome/plugin/chrome_plugin_host.cc @@ -50,8 +50,13 @@ class PluginRequestHandlerProxy PluginRequestHandlerProxy(ChromePluginLib* plugin, ScopableCPRequest* cprequest) - : PluginHelper(plugin), cprequest_(cprequest), sync_(false), - response_data_offset_(0), completed_(false), read_buffer_(NULL) { + : PluginHelper(plugin), + cprequest_(cprequest), + sync_(false), + response_data_offset_(0), + completed_(false), + read_buffer_(NULL), + read_buffer_size_(0) { load_flags_ = PluginResponseUtils::CPLoadFlagsToNetFlags(0); cprequest_->data = this; // see FromCPRequest(). } diff --git a/chrome/renderer/media/audio_renderer_impl.cc b/chrome/renderer/media/audio_renderer_impl.cc index 4e8d20e..2ce02ab 100644 --- a/chrome/renderer/media/audio_renderer_impl.cc +++ b/chrome/renderer/media/audio_renderer_impl.cc @@ -34,7 +34,9 @@ AudioRendererImpl::AudioRendererImpl(AudioMessageFilter* filter) shared_memory_size_(0), io_loop_(filter->message_loop()), stopped_(false), - pending_request_(false) { + pending_request_(false), + prerolling_(false), + preroll_bytes_(0) { DCHECK(io_loop_); } diff --git a/chrome/renderer/pepper_devices.h b/chrome/renderer/pepper_devices.h index d911931..2a72f4e 100644 --- a/chrome/renderer/pepper_devices.h +++ b/chrome/renderer/pepper_devices.h @@ -97,7 +97,10 @@ class Graphics2DDeviceContext { class AudioDeviceContext : public AudioMessageFilter::Delegate, public base::DelegateSimpleThread::Delegate { public: - explicit AudioDeviceContext() : stream_id_(0) { + explicit AudioDeviceContext() + : context_(NULL), + stream_id_(0), + shared_memory_size_(0) { } virtual ~AudioDeviceContext(); diff --git a/chrome/service/cloud_print/cloud_print_proxy.cc b/chrome/service/cloud_print/cloud_print_proxy.cc index 24eeeec..f2fa628 100644 --- a/chrome/service/cloud_print/cloud_print_proxy.cc +++ b/chrome/service/cloud_print/cloud_print_proxy.cc @@ -37,7 +37,9 @@ static void ShowTokenExpiredNotificationInBrowser() { base::LaunchApp(cmd_line, false, false, NULL); } -CloudPrintProxy::CloudPrintProxy() { +CloudPrintProxy::CloudPrintProxy() + : service_prefs_(NULL), + client_(NULL) { } CloudPrintProxy::~CloudPrintProxy() { |