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

Unified 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: Fix test compilation. 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/host_zoom_level_context.cc
diff --git a/content/browser/host_zoom_level_context.cc b/content/browser/host_zoom_level_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f576238784d601f4c6a432698510e82daa10ef26
--- /dev/null
+++ b/content/browser/host_zoom_level_context.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/host_zoom_level_context.h"
+
+#include "base/files/file_path.h"
+#include "content/browser/host_zoom_map_impl.h"
+
+namespace content {
+
+HostZoomLevelContext::HostZoomLevelContext(
+ scoped_ptr<ZoomLevelPrefsStore> zoom_level_prefs,
+ const base::FilePath& file_path)
+ : host_zoom_map_impl_(new HostZoomMapImpl()),
+ zoom_level_prefs_(zoom_level_prefs.release()) {
+ if (zoom_level_prefs_)
+ zoom_level_prefs_->InitPrefsAndCopyToHostZoomMap(file_path,
+ host_zoom_map_impl_.get());
+}
+
+HostZoomLevelContext::~HostZoomLevelContext() {}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698