diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 19:22:24 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 19:22:24 +0000 |
commit | bc797e617d7743343497fbbac92e2e9ce71a8ec6 (patch) | |
tree | cd3f34e3c7b1c563e35e4667c257bde91889db61 | |
parent | 87baa6dbe163c7bda1fa6b17d44aae7fc329d80e (diff) | |
download | chromium_src-bc797e617d7743343497fbbac92e2e9ce71a8ec6.zip chromium_src-bc797e617d7743343497fbbac92e2e9ce71a8ec6.tar.gz chromium_src-bc797e617d7743343497fbbac92e2e9ce71a8ec6.tar.bz2 |
Coverity: Initialize ssl_cert_id_, ssl_cert_status_, and ssl_security_bits_ in the constructor.
CID=5442
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/222008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26960 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/tab_contents/provisional_load_details.cc | 3 | ||||
-rw-r--r-- | chrome/browser/tab_contents/provisional_load_details.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/provisional_load_details.cc b/chrome/browser/tab_contents/provisional_load_details.cc index 42d4a23..f144d0a 100644 --- a/chrome/browser/tab_contents/provisional_load_details.cc +++ b/chrome/browser/tab_contents/provisional_load_details.cc @@ -16,6 +16,9 @@ ProvisionalLoadDetails::ProvisionalLoadDetails(bool is_main_frame, url_(url), is_main_frame_(is_main_frame), is_in_page_navigation_(is_in_page_navigation), + ssl_cert_id_(0), + ssl_cert_status_(0), + ssl_security_bits_(-1), is_content_filtered_(is_content_filtered) { SSLManager::DeserializeSecurityInfo(security_info, &ssl_cert_id_, diff --git a/chrome/browser/tab_contents/provisional_load_details.h b/chrome/browser/tab_contents/provisional_load_details.h index 4359668..ce4f5da 100644 --- a/chrome/browser/tab_contents/provisional_load_details.h +++ b/chrome/browser/tab_contents/provisional_load_details.h @@ -5,6 +5,8 @@ #ifndef CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ #define CHROME_BROWSER_TAB_CONTENTS_PROVISIONAL_LOAD_DETAILS_H_ +#include <string> + #include "base/basictypes.h" #include "googleurl/src/gurl.h" @@ -26,7 +28,7 @@ class ProvisionalLoadDetails { bool is_filtered); virtual ~ProvisionalLoadDetails() { } - void set_error_code(int error_code) { error_code_ = error_code; }; + void set_error_code(int error_code) { error_code_ = error_code; } int error_code() const { return error_code_; } const GURL& url() const { return url_; } |