summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 22:41:41 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 22:41:41 +0000
commit4617b2176af3afeb57c1bbca40e73551e5bc6321 (patch)
treedee5348cb1ff2bbc1fa4c8e5b6389e31cb7be7e4 /chrome/browser
parent76c18f6a7ef490e3195dda28b70f6ed4aca56cab (diff)
downloadchromium_src-4617b2176af3afeb57c1bbca40e73551e5bc6321.zip
chromium_src-4617b2176af3afeb57c1bbca40e73551e5bc6321.tar.gz
chromium_src-4617b2176af3afeb57c1bbca40e73551e5bc6321.tar.bz2
Coverity issues 6506, 11549, 11097, 8454: Uninitialized members in various files.
BUG=None (Coverity issue id listed above) TEST=None Review URL: http://codereview.chromium.org/3031022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53538 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc4
-rw-r--r--chrome/browser/notifications/desktop_notification_service_unittest.cc3
-rw-r--r--chrome/browser/printing/print_dialog_cloud_uitest.cc5
-rw-r--r--chrome/browser/status_icons/status_tray_manager.cc2
4 files changed, 10 insertions, 4 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index 17197a4..a837893 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -732,7 +732,9 @@ void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper(
// ChromeURLRequestContext
// ----------------------------------------------------------------------------
-ChromeURLRequestContext::ChromeURLRequestContext() {
+ChromeURLRequestContext::ChromeURLRequestContext()
+ : is_media_(false),
+ is_off_the_record_(false) {
CheckCurrentlyOnIOThread();
}
diff --git a/chrome/browser/notifications/desktop_notification_service_unittest.cc b/chrome/browser/notifications/desktop_notification_service_unittest.cc
index 3af8b0f..b47c645 100644
--- a/chrome/browser/notifications/desktop_notification_service_unittest.cc
+++ b/chrome/browser/notifications/desktop_notification_service_unittest.cc
@@ -24,7 +24,8 @@ class ThreadProxy : public base::RefCountedThreadSafe<ThreadProxy> {
public:
ThreadProxy()
: io_event_(false, false),
- ui_event_(false, false) {
+ ui_event_(false, false),
+ permission_(0) {
// The current message loop was already initalized by the test superclass.
ui_thread_.reset(
new ChromeThread(ChromeThread::UI, MessageLoop::current()));
diff --git a/chrome/browser/printing/print_dialog_cloud_uitest.cc b/chrome/browser/printing/print_dialog_cloud_uitest.cc
index 4a07d8c..5d15923 100644
--- a/chrome/browser/printing/print_dialog_cloud_uitest.cc
+++ b/chrome/browser/printing/print_dialog_cloud_uitest.cc
@@ -76,7 +76,10 @@ class SimpleTestJob : public URLRequestTestJob {
class TestController {
public:
- TestController() : result_(false), use_delegate_(false) {}
+ TestController()
+ : result_(false),
+ use_delegate_(false),
+ delegate_(NULL) {}
void set_result(bool value) {
result_ = value;
}
diff --git a/chrome/browser/status_icons/status_tray_manager.cc b/chrome/browser/status_icons/status_tray_manager.cc
index 7a8a779..d60fc5e 100644
--- a/chrome/browser/status_icons/status_tray_manager.cc
+++ b/chrome/browser/status_icons/status_tray_manager.cc
@@ -16,7 +16,7 @@
#include "grit/chromium_strings.h"
#include "grit/theme_resources.h"
-StatusTrayManager::StatusTrayManager() {
+StatusTrayManager::StatusTrayManager() : profile_(NULL) {
}
StatusTrayManager::~StatusTrayManager() {