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

Side by Side Diff: components/policy/core/common/external_data_fetcher.cc

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/policy/core/common/external_data_fetcher.h" 5 #include "components/policy/core/common/external_data_fetcher.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "components/policy/core/common/external_data_manager.h" 8 #include "components/policy/core/common/external_data_manager.h"
9 9
10 namespace policy { 10 namespace policy {
(...skipping 21 matching lines...) Expand all
32 if (!first || !second) 32 if (!first || !second)
33 return false; 33 return false;
34 return first->manager_.get() == second->manager_.get() && 34 return first->manager_.get() == second->manager_.get() &&
35 first->policy_ == second->policy_; 35 first->policy_ == second->policy_;
36 } 36 }
37 37
38 void ExternalDataFetcher::Fetch(const FetchCallback& callback) const { 38 void ExternalDataFetcher::Fetch(const FetchCallback& callback) const {
39 if (manager_) 39 if (manager_)
40 manager_->Fetch(policy_, callback); 40 manager_->Fetch(policy_, callback);
41 else 41 else
42 callback.Run(scoped_ptr<std::string>()); 42 callback.Run(std::unique_ptr<std::string>());
43 } 43 }
44 44
45 } // namespace policy 45 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/common/external_data_fetcher.h ('k') | components/policy/core/common/fake_async_policy_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698