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

Side by Side Diff: components/policy/core/common/cloud/external_policy_data_fetcher.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 unified diff | Download patch | Annotate | Revision Log
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 "chrome/browser/policy/cloud/external_policy_data_fetcher.h" 5 #include "components/policy/core/common/cloud/external_policy_data_fetcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "net/base/load_flags.h" 13 #include "net/base/load_flags.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/url_request/url_fetcher.h" 15 #include "net/url_request/url_fetcher.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 ExternalPolicyDataFetcher::Job* job = it->second; 258 ExternalPolicyDataFetcher::Job* job = it->second;
259 delete it->first; 259 delete it->first;
260 job_map_.erase(it); 260 job_map_.erase(it);
261 job->callback.Run(job, 261 job->callback.Run(job,
262 ExternalPolicyDataFetcher::MAX_SIZE_EXCEEDED, 262 ExternalPolicyDataFetcher::MAX_SIZE_EXCEEDED,
263 scoped_ptr<std::string>()); 263 scoped_ptr<std::string>());
264 } 264 }
265 } 265 }
266 266
267 } // namespace policy 267 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698