diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 22:20:44 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 22:20:44 +0000 |
commit | 30a06c142de3b9198a44251b1ccc11fa838ef7ef (patch) | |
tree | e7ad7f6460ac26e6ae02688361b4becdeb9a7e64 /chrome/browser | |
parent | cfc06f12ec93799d758164c22b4e53125eaade8d (diff) | |
download | chromium_src-30a06c142de3b9198a44251b1ccc11fa838ef7ef.zip chromium_src-30a06c142de3b9198a44251b1ccc11fa838ef7ef.tar.gz chromium_src-30a06c142de3b9198a44251b1ccc11fa838ef7ef.tar.bz2 |
Linux: fix uninit warnings when building -Os.
http://codereview.chromium.org/401002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32105 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/cancelable_request.cc | 2 | ||||
-rw-r--r-- | chrome/browser/extensions/extension_bookmarks_module.cc | 2 | ||||
-rw-r--r-- | chrome/browser/history/expire_history_backend.cc | 2 | ||||
-rw-r--r-- | chrome/browser/net/dns_global.cc | 2 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_widget_helper.cc | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/cancelable_request.cc b/chrome/browser/cancelable_request.cc index bfc1d532..1d20eca 100644 --- a/chrome/browser/cancelable_request.cc +++ b/chrome/browser/cancelable_request.cc @@ -54,7 +54,7 @@ void CancelableRequestProvider::CancelRequestLocked(Handle handle) { } void CancelableRequestProvider::RequestCompleted(Handle handle) { - CancelableRequestConsumerBase* consumer; + CancelableRequestConsumerBase* consumer = NULL; { AutoLock lock(pending_request_lock_); diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc index fb9bc47..fe19d67 100644 --- a/chrome/browser/extensions/extension_bookmarks_module.cc +++ b/chrome/browser/extensions/extension_bookmarks_module.cc @@ -481,7 +481,7 @@ bool MoveBookmarkFunction::RunImpl() { return false; } - const BookmarkNode* parent; + const BookmarkNode* parent = NULL; if (!destination->HasKey(keys::kParentIdKey)) { // Optional, defaults to current parent. parent = node->GetParent(); diff --git a/chrome/browser/history/expire_history_backend.cc b/chrome/browser/history/expire_history_backend.cc index 3c1aff3..882a53c 100644 --- a/chrome/browser/history/expire_history_backend.cc +++ b/chrome/browser/history/expire_history_backend.cc @@ -349,7 +349,7 @@ void ExpireHistoryBackend::DeleteVisitRelatedInfo( // Add the URL row to the affected URL list. std::map<URLID, URLRow>::const_iterator found = dependencies->affected_urls.find(visits[i].url_id); - const URLRow* cur_row; + const URLRow* cur_row = NULL; if (found == dependencies->affected_urls.end()) { URLRow row; if (!main_db_->GetURLRow(visits[i].url_id, &row)) diff --git a/chrome/browser/net/dns_global.cc b/chrome/browser/net/dns_global.cc index 7caef17..970a529 100644 --- a/chrome/browser/net/dns_global.cc +++ b/chrome/browser/net/dns_global.cc @@ -228,7 +228,7 @@ void PrefetchObserver::OnFinishResolutionWithStatus( if (request_info.is_speculative()) return; // One of our own requests. DnsHostInfo navigation_info; - size_t startup_count; + size_t startup_count = 0; { AutoLock auto_lock(*lock); ObservedResolutionMap::iterator it = resolutions->find(request_id); diff --git a/chrome/browser/renderer_host/render_widget_helper.cc b/chrome/browser/renderer_host/render_widget_helper.cc index 51a533f..8916c70 100644 --- a/chrome/browser/renderer_host/render_widget_helper.cc +++ b/chrome/browser/renderer_host/render_widget_helper.cc @@ -137,7 +137,7 @@ bool RenderWidgetHelper::WaitForPaintMsg(int render_widget_id, void RenderWidgetHelper::DidReceivePaintMsg(const IPC::Message& msg) { int render_widget_id = msg.routing_id(); - PaintMsgProxy* proxy; + PaintMsgProxy* proxy = NULL; { AutoLock lock(pending_paints_lock_); |