OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/variations/variations_request_scheduler.h" | 5 #include "components/variations/variations_request_scheduler.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "build/build_config.h" |
8 #include "components/variations/variations_associated_data.h" | 11 #include "components/variations/variations_associated_data.h" |
9 | 12 |
10 namespace variations { | 13 namespace variations { |
11 | 14 |
12 VariationsRequestScheduler::VariationsRequestScheduler( | 15 VariationsRequestScheduler::VariationsRequestScheduler( |
13 const base::Closure& task) : task_(task) { | 16 const base::Closure& task) : task_(task) { |
14 } | 17 } |
15 | 18 |
16 VariationsRequestScheduler::~VariationsRequestScheduler() { | 19 VariationsRequestScheduler::~VariationsRequestScheduler() { |
17 } | 20 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 64 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
62 // static | 65 // static |
63 VariationsRequestScheduler* VariationsRequestScheduler::Create( | 66 VariationsRequestScheduler* VariationsRequestScheduler::Create( |
64 const base::Closure& task, | 67 const base::Closure& task, |
65 PrefService* local_state) { | 68 PrefService* local_state) { |
66 return new VariationsRequestScheduler(task); | 69 return new VariationsRequestScheduler(task); |
67 } | 70 } |
68 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 71 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
69 | 72 |
70 } // namespace variations | 73 } // namespace variations |
OLD | NEW |