| 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/tracing/chrome_tracing_delegate.h" | 5 #include "chrome/browser/tracing/chrome_tracing_delegate.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/prefs/pref_registry_simple.h" | |
| 10 #include "base/prefs/pref_service.h" | |
| 11 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 12 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 13 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
| 16 #include "chrome/browser/tracing/crash_service_uploader.h" | 14 #include "chrome/browser/tracing/crash_service_uploader.h" |
| 17 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
| 19 #include "chrome/browser/ui/browser_otr_state.h" | 17 #include "chrome/browser/ui/browser_otr_state.h" |
| 20 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 21 #include "chrome/common/trace_event_args_whitelist.h" | 19 #include "chrome/common/trace_event_args_whitelist.h" |
| 22 #include "components/metrics/metrics_pref_names.h" | 20 #include "components/metrics/metrics_pref_names.h" |
| 21 #include "components/prefs/pref_registry_simple.h" |
| 22 #include "components/prefs/pref_service.h" |
| 23 #include "components/variations/active_field_trials.h" | 23 #include "components/variations/active_field_trials.h" |
| 24 #include "content/public/browser/background_tracing_config.h" | 24 #include "content/public/browser/background_tracing_config.h" |
| 25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 const int kMinDaysUntilNextUpload = 7; | 29 const int kMinDaysUntilNextUpload = 7; |
| 30 | 30 |
| 31 } // namespace | 31 } // namespace |
| 32 | 32 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 for (const auto& it : variations) | 152 for (const auto& it : variations) |
| 153 variations_list->Append(new base::StringValue(it)); | 153 variations_list->Append(new base::StringValue(it)); |
| 154 | 154 |
| 155 metadata_dict->Set("field-trials", std::move(variations_list)); | 155 metadata_dict->Set("field-trials", std::move(variations_list)); |
| 156 } | 156 } |
| 157 | 157 |
| 158 content::MetadataFilterPredicate | 158 content::MetadataFilterPredicate |
| 159 ChromeTracingDelegate::GetMetadataFilterPredicate() { | 159 ChromeTracingDelegate::GetMetadataFilterPredicate() { |
| 160 return base::Bind(&IsMetadataWhitelisted); | 160 return base::Bind(&IsMetadataWhitelisted); |
| 161 } | 161 } |
| OLD | NEW |