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

Unified Diff: chrome/browser/policy/cloud/cloud_external_data_manager.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud/cloud_external_data_manager.cc
diff --git a/chrome/browser/policy/cloud/cloud_external_data_manager.cc b/chrome/browser/policy/cloud/cloud_external_data_manager.cc
deleted file mode 100644
index 797ffd0d00071a009f5a709b81312cc555b17841..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/cloud/cloud_external_data_manager.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 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 "chrome/browser/policy/cloud/cloud_external_data_manager.h"
-
-#include "chrome/browser/policy/cloud/cloud_policy_store.h"
-#include "net/url_request/url_request_context_getter.h"
-
-namespace policy {
-
-CloudExternalDataManager::MetadataEntry::MetadataEntry() {
-}
-
-CloudExternalDataManager::MetadataEntry::MetadataEntry(const std::string& url,
- const std::string& hash)
- : url(url),
- hash(hash) {
-}
-
-bool CloudExternalDataManager::MetadataEntry::operator!=(
- const MetadataEntry& other) const {
- return url != other.url || hash != other.hash;
-}
-
-CloudExternalDataManager::CloudExternalDataManager() : policy_store_(NULL),
- weak_factory_(this) {
-}
-
-CloudExternalDataManager::~CloudExternalDataManager() {
-}
-
-void CloudExternalDataManager::SetPolicyStore(CloudPolicyStore* policy_store) {
- weak_factory_.InvalidateWeakPtrs();
- policy_store_ = policy_store;
- if (policy_store_)
- policy_store_->SetExternalDataManager(weak_factory_.GetWeakPtr());
-}
-
-} // namespace policy
« no previous file with comments | « chrome/browser/policy/cloud/cloud_external_data_manager.h ('k') | chrome/browser/policy/cloud/cloud_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698