Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1297)

Side by Side Diff: chrome/browser/tracing/background_tracing_field_trial.cc

Issue 2465953002: Move Field Trial Utils from chrome/common/variations to components/variations/field_trial_util (Closed)
Patch Set: Moved to components/variations/field_trial_util and chrome switches Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/plugins/flash_permission_browsertest.cc ('k') | chrome/browser/tracing/chrome_tracing_delegate_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698