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

Side by Side Diff: content/browser/host_zoom_level_context.cc

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/host_zoom_level_context.h"
6
7 #include "content/browser/host_zoom_map_impl.h"
8
9 namespace content {
10
11 HostZoomLevelContext::HostZoomLevelContext(
12 scoped_ptr<ZoomLevelPrefsStore> prefs_store,
13 const base::FilePath& file_path,
14 double default_zoom_level)
15 : host_zoom_map_impl_(new HostZoomMapImpl(default_zoom_level)),
16 prefs_store_(prefs_store.release()) {
17 if (prefs_store_)
18 prefs_store_->InitHostZoomMap(file_path, host_zoom_map_impl_.get());
19 }
20
21 HostZoomLevelContext::~HostZoomLevelContext() {}
22
23 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698