Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: chrome/browser/history/in_memory_url_index.cc

Issue 9005015: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/in_memory_url_index.cc
diff --git a/chrome/browser/history/in_memory_url_index.cc b/chrome/browser/history/in_memory_url_index.cc
index eb03b95ddbf0f04f4741013f78dec4250e62c6ab..384322f8e594823eea2bbaf756a61c408b9cea0d 100644
--- a/chrome/browser/history/in_memory_url_index.cc
+++ b/chrome/browser/history/in_memory_url_index.cc
@@ -115,14 +115,20 @@ int ScoreForValue(int value, const int* value_ranks) {
InMemoryURLIndex::InMemoryURLIndex(const FilePath& history_dir)
: history_dir_(history_dir),
private_data_(new URLIndexPrivateData),
- cached_at_shutdown_(false) {
+ cached_at_shutdown_(false),
+ pre_filter_item_count(0),
+ post_filter_item_count(0),
+ post_scoring_item_count(0) {
InMemoryURLIndex::InitializeSchemeWhitelist(&scheme_whitelist_);
}
// Called only by unit tests.
InMemoryURLIndex::InMemoryURLIndex()
: private_data_(new URLIndexPrivateData),
- cached_at_shutdown_(false) {
+ cached_at_shutdown_(false),
+ pre_filter_item_count(0),
+ post_filter_item_count(0),
+ post_scoring_item_count(0) {
InMemoryURLIndex::InitializeSchemeWhitelist(&scheme_whitelist_);
}
« no previous file with comments | « chrome/browser/extensions/extension_web_socket_proxy_private_api.cc ('k') | chrome/browser/policy/cloud_policy_subsystem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698