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/background_tracing_field_trial.h" | 5 #include "chrome/browser/tracing/background_tracing_field_trial.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/tracing/crash_service_uploader.h" | 14 #include "chrome/browser/tracing/crash_service_uploader.h" |
15 #include "chrome/common/variations/variations_util.h" | |
16 #include "components/variations/variations_associated_data.h" | 15 #include "components/variations/variations_associated_data.h" |
17 #include "content/public/browser/background_tracing_config.h" | 16 #include "content/public/browser/background_tracing_config.h" |
18 #include "content/public/browser/background_tracing_manager.h" | 17 #include "content/public/browser/background_tracing_manager.h" |
19 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
20 #include "net/base/network_change_notifier.h" | 19 #include "net/base/network_change_notifier.h" |
21 #include "url/gurl.h" | 20 #include "url/gurl.h" |
22 | 21 |
23 namespace tracing { | 22 namespace tracing { |
24 | 23 |
25 namespace { | 24 namespace { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 content::BackgroundTracingConfig::FromDict(dict); | 93 content::BackgroundTracingConfig::FromDict(dict); |
95 if (!config) | 94 if (!config) |
96 return; | 95 return; |
97 | 96 |
98 content::BackgroundTracingManager::GetInstance()->SetActiveScenario( | 97 content::BackgroundTracingManager::GetInstance()->SetActiveScenario( |
99 std::move(config), base::Bind(&UploadCallback, upload_url), | 98 std::move(config), base::Bind(&UploadCallback, upload_url), |
100 content::BackgroundTracingManager::ANONYMIZE_DATA); | 99 content::BackgroundTracingManager::ANONYMIZE_DATA); |
101 } | 100 } |
102 | 101 |
103 } // namespace tracing | 102 } // namespace tracing |
OLD | NEW |