| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/android/data_usage/data_use_tab_model.h" | 5 #include "chrome/browser/android/data_usage/data_use_tab_model.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 9 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/time/default_tick_clock.h" | 12 #include "base/time/default_tick_clock.h" |
| 11 #include "base/time/tick_clock.h" | 13 #include "base/time/tick_clock.h" |
| 12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 13 #include "chrome/browser/android/data_usage/data_use_matcher.h" | 15 #include "chrome/browser/android/data_usage/data_use_matcher.h" |
| 14 #include "chrome/browser/android/data_usage/external_data_use_observer.h" | 16 #include "chrome/browser/android/data_usage/external_data_use_observer.h" |
| 15 #include "components/variations/variations_associated_data.h" | 17 #include "components/variations/variations_associated_data.h" |
| 16 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 NowTicks() - | 397 NowTicks() - |
| 396 oldest_tab_entry_iterator->second.GetLatestStartOrEndTime(), | 398 oldest_tab_entry_iterator->second.GetLatestStartOrEndTime(), |
| 397 base::TimeDelta::FromMinutes(1), base::TimeDelta::FromHours(1), 50); | 399 base::TimeDelta::FromMinutes(1), base::TimeDelta::FromHours(1), 50); |
| 398 active_tabs_.erase(oldest_tab_entry_iterator); | 400 active_tabs_.erase(oldest_tab_entry_iterator); |
| 399 } | 401 } |
| 400 } | 402 } |
| 401 | 403 |
| 402 } // namespace android | 404 } // namespace android |
| 403 | 405 |
| 404 } // namespace chrome | 406 } // namespace chrome |
| OLD | NEW |