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

Side by Side Diff: components/offline_pages/core/client_policy_controller.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/offline_pages/client_policy_controller.h" 5 #include "components/offline_pages/core/client_policy_controller.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "components/offline_pages/client_namespace_constants.h" 11 #include "components/offline_pages/core/client_namespace_constants.h"
12 12
13 using LifetimeType = offline_pages::LifetimePolicy::LifetimeType; 13 using LifetimeType = offline_pages::LifetimePolicy::LifetimeType;
14 14
15 namespace offline_pages { 15 namespace offline_pages {
16 16
17 ClientPolicyController::ClientPolicyController() { 17 ClientPolicyController::ClientPolicyController() {
18 policies_.clear(); 18 policies_.clear();
19 // Manually defining client policies for bookmark and last_n. 19 // Manually defining client policies for bookmark and last_n.
20 policies_.insert(std::make_pair( 20 policies_.insert(std::make_pair(
21 kBookmarkNamespace, 21 kBookmarkNamespace,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return *show_in_original_tab_cache_; 154 return *show_in_original_tab_cache_;
155 } 155 }
156 156
157 void ClientPolicyController::AddPolicyForTest( 157 void ClientPolicyController::AddPolicyForTest(
158 const std::string& name_space, 158 const std::string& name_space,
159 const OfflinePageClientPolicyBuilder& builder) { 159 const OfflinePageClientPolicyBuilder& builder) {
160 policies_.insert(std::make_pair(name_space, builder.Build())); 160 policies_.insert(std::make_pair(name_space, builder.Build()));
161 } 161 }
162 162
163 } // namespace offline_pages 163 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698