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

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

Issue 11414018: [zoom bubble] Add tests for ZoomController::UpdateState() handling empty hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 1 month 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
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_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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 double zoom_level = 0; 532 double zoom_level = 0;
533 533
534 bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion( 534 bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion(
535 host, &zoom_level); 535 host, &zoom_level);
536 DCHECK(success); 536 DCHECK(success);
537 host_zoom_map->SetZoomLevel(host, zoom_level); 537 host_zoom_map->SetZoomLevel(host, zoom_level);
538 } 538 }
539 } 539 }
540 540
541 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED, 541 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED,
542 content::Source<HostZoomMap>(host_zoom_map)); 542 content::Source<HostZoomMap>(host_zoom_map));
543 } 543 }
544 544
545 void ProfileImpl::InitPromoResources() { 545 void ProfileImpl::InitPromoResources() {
546 if (promo_resource_service_) 546 if (promo_resource_service_)
547 return; 547 return;
548 promo_resource_service_ = new PromoResourceService(this); 548 promo_resource_service_ = new PromoResourceService(this);
549 promo_resource_service_->StartAfterDelay(); 549 promo_resource_service_->StartAfterDelay();
550 } 550 }
551 551
552 FilePath ProfileImpl::last_selected_directory() { 552 FilePath ProfileImpl::last_selected_directory() {
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 if (!path.empty()) 1151 if (!path.empty())
1152 *cache_path = path; 1152 *cache_path = path;
1153 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1153 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1154 prefs_->GetInteger(prefs::kDiskCacheSize); 1154 prefs_->GetInteger(prefs::kDiskCacheSize);
1155 } 1155 }
1156 1156
1157 base::Callback<ChromeURLDataManagerBackend*(void)> 1157 base::Callback<ChromeURLDataManagerBackend*(void)>
1158 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1158 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1159 return io_data_.GetChromeURLDataManagerBackendGetter(); 1159 return io_data_.GetChromeURLDataManagerBackendGetter();
1160 } 1160 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl_unittest.cc ('k') | chrome/browser/ui/zoom/zoom_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698