summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 01:51:52 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 01:51:52 +0000
commit196bb4b9c21defec2cf6059584563ee9e347dea6 (patch)
tree43fc0b0d6ffa5b3f3cb688e4bd4b9bb12afeaed2 /chrome/browser
parent0c7bc4b7c3b400cab5d6981b0c47e8f32b29e09f (diff)
downloadchromium_src-196bb4b9c21defec2cf6059584563ee9e347dea6.zip
chromium_src-196bb4b9c21defec2cf6059584563ee9e347dea6.tar.gz
chromium_src-196bb4b9c21defec2cf6059584563ee9e347dea6.tar.bz2
Coverity underground warfare: Uninitalized member
- Fix ctor to init members - CID 4186 BUG = none TEST = well, it is a unit test Review URL: http://codereview.chromium.org/112076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc b/chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc
index 2675049..1d323fa 100644
--- a/chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc
+++ b/chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc
@@ -14,7 +14,11 @@
// A mock ThemeSource (so we can override SendResponse to get at its data).
class MockThemeSource : public DOMUIThemeSource {
public:
- explicit MockThemeSource(Profile* profile) : DOMUIThemeSource(profile) { }
+ explicit MockThemeSource(Profile* profile)
+ : DOMUIThemeSource(profile),
+ result_request_id_(-1),
+ result_data_size_(0) {
+ }
virtual void SendResponse(int request_id, RefCountedBytes* data) {
result_data_size_ = data ? data->data.size() : 0;