| OLD | NEW |
| 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_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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 double zoom_level = 0; | 526 double zoom_level = 0; |
| 527 | 527 |
| 528 bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion( | 528 bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion( |
| 529 host, &zoom_level); | 529 host, &zoom_level); |
| 530 DCHECK(success); | 530 DCHECK(success); |
| 531 host_zoom_map->SetZoomLevel(host, zoom_level); | 531 host_zoom_map->SetZoomLevel(host, zoom_level); |
| 532 } | 532 } |
| 533 } | 533 } |
| 534 | 534 |
| 535 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED, | 535 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 536 content::Source<HostZoomMap>(host_zoom_map)); | 536 content::Source<HostZoomMap>(host_zoom_map)); |
| 537 } | 537 } |
| 538 | 538 |
| 539 void ProfileImpl::InitPromoResources() { | 539 void ProfileImpl::InitPromoResources() { |
| 540 if (promo_resource_service_) | 540 if (promo_resource_service_) |
| 541 return; | 541 return; |
| 542 promo_resource_service_ = new PromoResourceService(this); | 542 promo_resource_service_ = new PromoResourceService(this); |
| 543 promo_resource_service_->StartAfterDelay(); | 543 promo_resource_service_->StartAfterDelay(); |
| 544 } | 544 } |
| 545 | 545 |
| 546 FilePath ProfileImpl::last_selected_directory() { | 546 FilePath ProfileImpl::last_selected_directory() { |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 if (!path.empty()) | 1145 if (!path.empty()) |
| 1146 *cache_path = path; | 1146 *cache_path = path; |
| 1147 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1147 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
| 1148 prefs_->GetInteger(prefs::kDiskCacheSize); | 1148 prefs_->GetInteger(prefs::kDiskCacheSize); |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 base::Callback<ChromeURLDataManagerBackend*(void)> | 1151 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 1152 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 1152 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 1153 return io_data_.GetChromeURLDataManagerBackendGetter(); | 1153 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 1154 } | 1154 } |
| OLD | NEW |