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

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

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 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
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 const std::string& host(*i); 550 const std::string& host(*i);
551 double zoom_level = 0; 551 double zoom_level = 0;
552 552
553 bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion( 553 bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion(
554 host, &zoom_level); 554 host, &zoom_level);
555 DCHECK(success); 555 DCHECK(success);
556 host_zoom_map->SetZoomLevel(host, zoom_level); 556 host_zoom_map->SetZoomLevel(host, zoom_level);
557 } 557 }
558 } 558 }
559 559
560 #if defined(OS_CHROMEOS)
561 host_zoom_map->SetZoomLevel(chrome::kChromeUIUberHost,
562 chrome::kChromeUIOobeHost,
Nikita (slow) 2013/01/11 15:23:55 nit: Alignment like this is more readable if it fi
563 0);
564 host_zoom_map->SetZoomLevel(chrome::kChromeUIUberHost,
565 chrome::kChromeUILoginHost,
566 0);
567 host_zoom_map->SetZoomLevel(chrome::kChromeUIUberHost,
568 chrome::kChromeUILockScreenHost,
569 0);
570 #endif
571
560 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED, 572 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED,
561 content::Source<HostZoomMap>(host_zoom_map)); 573 content::Source<HostZoomMap>(host_zoom_map));
562 } 574 }
563 575
564 FilePath ProfileImpl::last_selected_directory() { 576 FilePath ProfileImpl::last_selected_directory() {
565 return GetPrefs()->GetFilePath(prefs::kSelectFileLastDirectory); 577 return GetPrefs()->GetFilePath(prefs::kSelectFileLastDirectory);
566 } 578 }
567 579
568 void ProfileImpl::set_last_selected_directory(const FilePath& path) { 580 void ProfileImpl::set_last_selected_directory(const FilePath& path) {
569 GetPrefs()->SetFilePath(prefs::kSelectFileLastDirectory, path); 581 GetPrefs()->SetFilePath(prefs::kSelectFileLastDirectory, path);
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 if (!path.empty()) 1147 if (!path.empty())
1136 *cache_path = path; 1148 *cache_path = path;
1137 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1149 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1138 prefs_->GetInteger(prefs::kDiskCacheSize); 1150 prefs_->GetInteger(prefs::kDiskCacheSize);
1139 } 1151 }
1140 1152
1141 base::Callback<ChromeURLDataManagerBackend*(void)> 1153 base::Callback<ChromeURLDataManagerBackend*(void)>
1142 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1154 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1143 return io_data_.GetChromeURLDataManagerBackendGetter(); 1155 return io_data_.GetChromeURLDataManagerBackendGetter();
1144 } 1156 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/host_zoom_map_impl.h » ('j') | content/public/browser/host_zoom_map.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698