| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/environment.h" | 10 #include "base/environment.h" |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 extension_service_->InitEventRouters(); | 472 extension_service_->InitEventRouters(); |
| 473 } | 473 } |
| 474 } | 474 } |
| 475 } | 475 } |
| 476 | 476 |
| 477 void ProfileImpl::InitPromoResources() { | 477 void ProfileImpl::InitPromoResources() { |
| 478 if (promo_resource_service_) | 478 if (promo_resource_service_) |
| 479 return; | 479 return; |
| 480 | 480 |
| 481 promo_resource_service_ = new PromoResourceService(this); | 481 promo_resource_service_ = new PromoResourceService(this); |
| 482 promo_resource_service_->StartAfterDelay(); | 482 promo_resource_service_->StartAfterDelay(false); |
| 483 } | 483 } |
| 484 | 484 |
| 485 void ProfileImpl::InitRegisteredProtocolHandlers() { | 485 void ProfileImpl::InitRegisteredProtocolHandlers() { |
| 486 if (protocol_handler_registry_) | 486 if (protocol_handler_registry_) |
| 487 return; | 487 return; |
| 488 protocol_handler_registry_ = new ProtocolHandlerRegistry(this, | 488 protocol_handler_registry_ = new ProtocolHandlerRegistry(this, |
| 489 new ProtocolHandlerRegistry::Delegate()); | 489 new ProtocolHandlerRegistry::Delegate()); |
| 490 protocol_handler_registry_->Load(); | 490 protocol_handler_registry_->Load(); |
| 491 } | 491 } |
| 492 | 492 |
| (...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1616 FilePath* cache_path, | 1616 FilePath* cache_path, |
| 1617 int* max_size) { | 1617 int* max_size) { |
| 1618 DCHECK(cache_path); | 1618 DCHECK(cache_path); |
| 1619 DCHECK(max_size); | 1619 DCHECK(max_size); |
| 1620 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); | 1620 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); |
| 1621 if (!path.empty()) | 1621 if (!path.empty()) |
| 1622 *cache_path = path; | 1622 *cache_path = path; |
| 1623 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1623 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
| 1624 prefs_->GetInteger(prefs::kDiskCacheSize); | 1624 prefs_->GetInteger(prefs::kDiskCacheSize); |
| 1625 } | 1625 } |
| OLD | NEW |