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

Unified Diff: chrome/browser/policy/external_data_fetcher.cc

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years, 1 month 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/external_data_fetcher.cc
diff --git a/chrome/browser/policy/external_data_fetcher.cc b/chrome/browser/policy/external_data_fetcher.cc
deleted file mode 100644
index c686c7a8be82c52f2368c46c3d141f7981a3429c..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/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 "chrome/browser/policy/external_data_fetcher.h"
-
-#include "base/callback.h"
-#include "chrome/browser/policy/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

Powered by Google App Engine
This is Rietveld 408576698