summaryrefslogtreecommitdiffstats
path: root/chromium/components/policy/core/common/external_data_fetcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/policy/core/common/external_data_fetcher.cc')
-rw-r--r--chromium/components/policy/core/common/external_data_fetcher.cc45
1 files changed, 0 insertions, 45 deletions
diff --git a/chromium/components/policy/core/common/external_data_fetcher.cc b/chromium/components/policy/core/common/external_data_fetcher.cc
deleted file mode 100644
index 924dce6e687..00000000000
--- a/chromium/components/policy/core/common/external_data_fetcher.cc
+++ /dev/null
@@ -1,45 +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 "components/policy/core/common/external_data_fetcher.h"
-
-#include "base/callback.h"
-#include "components/policy/core/common/external_data_manager.h"
-
-namespace policy {
-
-ExternalDataFetcher::ExternalDataFetcher(
- base::WeakPtr<ExternalDataManager> manager,
- const std::string& policy)
- : manager_(manager),
- policy_(policy) {
-}
-
-ExternalDataFetcher::ExternalDataFetcher(const ExternalDataFetcher& other)
- : manager_(other.manager_),
- policy_(other.policy_) {
-}
-
-ExternalDataFetcher::~ExternalDataFetcher() {
-}
-
-// static
-bool ExternalDataFetcher::Equals(const ExternalDataFetcher* first,
- const ExternalDataFetcher* second) {
- if (!first && !second)
- return true;
- if (!first || !second)
- return false;
- return first->manager_.get() == second->manager_.get() &&
- first->policy_ == second->policy_;
-}
-
-void ExternalDataFetcher::Fetch(const FetchCallback& callback) const {
- if (manager_)
- manager_->Fetch(policy_, callback);
- else
- callback.Run(scoped_ptr<std::string>());
-}
-
-} // namespace policy