OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "extensions/browser/updater/extension_downloader.h" | 5 #include "extensions/browser/updater/extension_downloader.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/location.h" | 14 #include "base/location.h" |
13 #include "base/logging.h" | 15 #include "base/logging.h" |
14 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
15 #include "base/metrics/sparse_histogram.h" | 17 #include "base/metrics/sparse_histogram.h" |
16 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 const GURL& update_url, | 938 const GURL& update_url, |
937 int request_id) { | 939 int request_id) { |
938 ManifestFetchData::PingMode ping_mode = ManifestFetchData::NO_PING; | 940 ManifestFetchData::PingMode ping_mode = ManifestFetchData::NO_PING; |
939 if (update_url.DomainIs(ping_enabled_domain_.c_str())) | 941 if (update_url.DomainIs(ping_enabled_domain_.c_str())) |
940 ping_mode = ManifestFetchData::PING_WITH_ENABLED_STATE; | 942 ping_mode = ManifestFetchData::PING_WITH_ENABLED_STATE; |
941 return new ManifestFetchData( | 943 return new ManifestFetchData( |
942 update_url, request_id, brand_code_, manifest_query_params_, ping_mode); | 944 update_url, request_id, brand_code_, manifest_query_params_, ping_mode); |
943 } | 945 } |
944 | 946 |
945 } // namespace extensions | 947 } // namespace extensions |
OLD | NEW |