summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 19:52:41 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 19:52:41 +0000
commitd957b76ce4f0fa477a18998747b0db4324dc5f74 (patch)
treeec4375956fb4e4dd98572dd40d654dd9825ecfdb /chrome
parentb33892e62a94b183df6892cbe0edce7c523e4ba3 (diff)
downloadchromium_src-d957b76ce4f0fa477a18998747b0db4324dc5f74.zip
chromium_src-d957b76ce4f0fa477a18998747b0db4324dc5f74.tar.gz
chromium_src-d957b76ce4f0fa477a18998747b0db4324dc5f74.tar.bz2
Coverity: Initialize profile_ and process_images_ in the constructor.
CID=3971 BUG=none TEST=none Review URL: http://codereview.chromium.org/219014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/browser_theme_provider.cc5
-rw-r--r--chrome/browser/browser_theme_provider.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/browser_theme_provider.cc b/chrome/browser/browser_theme_provider.cc
index fa6aa89..e59caf8 100644
--- a/chrome/browser/browser_theme_provider.cc
+++ b/chrome/browser/browser_theme_provider.cc
@@ -6,7 +6,6 @@
#include "app/gfx/skbitmap_operations.h"
#include "base/file_util.h"
-#include "base/string_util.h"
#include "base/gfx/png_decoder.h"
#include "base/gfx/png_encoder.h"
#include "base/string_util.h"
@@ -231,7 +230,9 @@ bool BrowserThemeProvider::WriteImagesToDisk() {
}
BrowserThemeProvider::BrowserThemeProvider()
- : rb_(ResourceBundle::GetSharedInstance()) {
+ : rb_(ResourceBundle::GetSharedInstance()),
+ profile_(NULL),
+ process_images_(false) {
static bool initialized = false;
if (!initialized) {
for (size_t i = 0; i < arraysize(kToolbarButtonIDs); ++i) {
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index 3c72549e..cec14d1f 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -146,7 +146,7 @@ class BrowserThemeProvider : public NonThreadSafe,
} AlignmentMasks;
// Background tiling choices.
- enum {
+ typedef enum {
NO_REPEAT = 0,
REPEAT_X = 1,
REPEAT_Y = 2,