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

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

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix alignment, add comment Created 7 years, 10 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/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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/off_the_record_profile_impl_unittest.cc » ('j') | content/public/browser/host_zoom_map.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698