| 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 "base/prefs/pref_registry_simple.h" | 7 #include "base/prefs/pref_registry_simple.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "build/build_config.h" |
| 10 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
| 13 #include "chrome/browser/tracing/crash_service_uploader.h" | 14 #include "chrome/browser/tracing/crash_service_uploader.h" |
| 14 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
| 16 #include "chrome/browser/ui/browser_otr_state.h" | 17 #include "chrome/browser/ui/browser_otr_state.h" |
| 17 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 18 #include "chrome/common/trace_event_args_whitelist.h" | 19 #include "chrome/common/trace_event_args_whitelist.h" |
| 19 #include "components/metrics/metrics_pref_names.h" | 20 #include "components/metrics/metrics_pref_names.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 for (const auto& it : variations) | 150 for (const auto& it : variations) |
| 150 variations_list->Append(new base::StringValue(it)); | 151 variations_list->Append(new base::StringValue(it)); |
| 151 | 152 |
| 152 metadata_dict->Set("field-trials", variations_list.Pass()); | 153 metadata_dict->Set("field-trials", variations_list.Pass()); |
| 153 } | 154 } |
| 154 | 155 |
| 155 content::MetadataFilterPredicate | 156 content::MetadataFilterPredicate |
| 156 ChromeTracingDelegate::GetMetadataFilterPredicate() { | 157 ChromeTracingDelegate::GetMetadataFilterPredicate() { |
| 157 return base::Bind(&IsMetadataWhitelisted); | 158 return base::Bind(&IsMetadataWhitelisted); |
| 158 } | 159 } |
| OLD | NEW |