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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 10833013: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 ProfileIOData::http_server_properties_manager() const { 395 ProfileIOData::http_server_properties_manager() const {
396 return http_server_properties_manager_.get(); 396 return http_server_properties_manager_.get();
397 } 397 }
398 398
399 void ProfileIOData::set_http_server_properties_manager( 399 void ProfileIOData::set_http_server_properties_manager(
400 chrome_browser_net::HttpServerPropertiesManager* manager) const { 400 chrome_browser_net::HttpServerPropertiesManager* manager) const {
401 http_server_properties_manager_.reset(manager); 401 http_server_properties_manager_.reset(manager);
402 } 402 }
403 403
404 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) 404 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data)
405 : io_data_(io_data) { 405 : io_data_(io_data),
406 host_resolver_(NULL),
407 request_context_(NULL) {
406 DCHECK(io_data); 408 DCHECK(io_data);
407 } 409 }
408 410
409 ProfileIOData::ResourceContext::~ResourceContext() {} 411 ProfileIOData::ResourceContext::~ResourceContext() {}
410 412
411 void ProfileIOData::ResourceContext::EnsureInitialized() { 413 void ProfileIOData::ResourceContext::EnsureInitialized() {
412 io_data_->LazyInitialize(); 414 io_data_->LazyInitialize();
413 } 415 }
414 416
415 net::HostResolver* ProfileIOData::ResourceContext::GetHostResolver() { 417 net::HostResolver* ProfileIOData::ResourceContext::GetHostResolver() {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 } 578 }
577 579
578 void ProfileIOData::set_server_bound_cert_service( 580 void ProfileIOData::set_server_bound_cert_service(
579 net::ServerBoundCertService* server_bound_cert_service) const { 581 net::ServerBoundCertService* server_bound_cert_service) const {
580 server_bound_cert_service_.reset(server_bound_cert_service); 582 server_bound_cert_service_.reset(server_bound_cert_service);
581 } 583 }
582 584
583 void ProfileIOData::DestroyResourceContext() { 585 void ProfileIOData::DestroyResourceContext() {
584 resource_context_.reset(); 586 resource_context_.reset();
585 } 587 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698