| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ntp_snippets/remote/scheduling_remote_suggestions_provider.
h" | 5 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider.
h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" |
| 10 #include "components/ntp_snippets/features.h" | 11 #include "components/ntp_snippets/features.h" |
| 11 #include "components/ntp_snippets/pref_names.h" | 12 #include "components/ntp_snippets/pref_names.h" |
| 12 #include "components/ntp_snippets/remote/persistent_scheduler.h" | 13 #include "components/ntp_snippets/remote/persistent_scheduler.h" |
| 13 #include "components/ntp_snippets/status.h" | 14 #include "components/ntp_snippets/status.h" |
| 14 #include "components/ntp_snippets/user_classifier.h" | 15 #include "components/ntp_snippets/user_classifier.h" |
| 15 #include "components/prefs/pref_registry_simple.h" | 16 #include "components/prefs/pref_registry_simple.h" |
| 16 #include "components/prefs/pref_service.h" | 17 #include "components/prefs/pref_service.h" |
| 17 #include "components/variations/variations_associated_data.h" | 18 #include "components/variations/variations_associated_data.h" |
| 18 | 19 |
| 19 namespace ntp_snippets { | 20 namespace ntp_snippets { |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 } | 329 } |
| 329 | 330 |
| 330 // Reschedule after a successful fetch. This resets all currently scheduled | 331 // Reschedule after a successful fetch. This resets all currently scheduled |
| 331 // fetches, to make sure the fallback interval triggers only if no wifi fetch | 332 // fetches, to make sure the fallback interval triggers only if no wifi fetch |
| 332 // succeeded, and also that we don't do a background fetch immediately after | 333 // succeeded, and also that we don't do a background fetch immediately after |
| 333 // a user-initiated one. | 334 // a user-initiated one. |
| 334 ApplyFetchingSchedule(GetLastFetchingSchedule()); | 335 ApplyFetchingSchedule(GetLastFetchingSchedule()); |
| 335 } | 336 } |
| 336 | 337 |
| 337 } // namespace ntp_snippets | 338 } // namespace ntp_snippets |
| OLD | NEW |