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/off_the_record_profile_impl.h" | 5 #include "chrome/browser/profiles/off_the_record_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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 return profile; | 491 return profile; |
492 } | 492 } |
493 | 493 |
494 void OffTheRecordProfileImpl::OnZoomLevelChanged(const std::string& host) { | 494 void OffTheRecordProfileImpl::OnZoomLevelChanged(const std::string& host) { |
495 if (host.empty()) | 495 if (host.empty()) |
496 return; | 496 return; |
497 | 497 |
498 HostZoomMap* host_zoom_map = HostZoomMap::GetForBrowserContext(this); | 498 HostZoomMap* host_zoom_map = HostZoomMap::GetForBrowserContext(this); |
499 HostZoomMap* parent_host_zoom_map = | 499 HostZoomMap* parent_host_zoom_map = |
500 HostZoomMap::GetForBrowserContext(profile_); | 500 HostZoomMap::GetForBrowserContext(profile_); |
501 double level = parent_host_zoom_map->GetZoomLevel(host); | 501 double level = parent_host_zoom_map->GetZoomLevelForHost(host); |
502 host_zoom_map->SetZoomLevel(host, level); | 502 host_zoom_map->SetZoomLevelForHost(host, level); |
503 } | 503 } |
OLD | NEW |