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/metrics/variations/chrome_variations_service_client.h" | 5 #include "chrome/browser/metrics/variations/chrome_variations_service_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" |
8 #include "build/build_config.h" | 9 #include "build/build_config.h" |
9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
10 #include "chrome/common/channel_info.h" | 11 #include "chrome/common/channel_info.h" |
11 #include "components/version_info/version_info.h" | 12 #include "components/version_info/version_info.h" |
12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
13 | 14 |
14 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
16 #include "base/metrics/histogram_macros.h" | 17 #include "base/metrics/histogram_macros.h" |
17 #include "base/path_service.h" | 18 #include "base/path_service.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 #if defined(OS_WIN) | 141 #if defined(OS_WIN) |
141 // TODO(jwd): Remove this once we're confident most clients no longer have | 142 // TODO(jwd): Remove this once we're confident most clients no longer have |
142 // these labels (M57-M58 timeframe). | 143 // these labels (M57-M58 timeframe). |
143 // Do the work on a blocking pool thread, as chrome://profiler has shown that | 144 // Do the work on a blocking pool thread, as chrome://profiler has shown that |
144 // it can cause jank if done on the UI thrread. | 145 // it can cause jank if done on the UI thrread. |
145 content::BrowserThread::GetBlockingPool()->PostDelayedTask( | 146 content::BrowserThread::GetBlockingPool()->PostDelayedTask( |
146 FROM_HERE, base::Bind(&ClearGoogleUpdateRegistryLabels), | 147 FROM_HERE, base::Bind(&ClearGoogleUpdateRegistryLabels), |
147 base::TimeDelta::FromSeconds(5)); | 148 base::TimeDelta::FromSeconds(5)); |
148 #endif | 149 #endif |
149 } | 150 } |
OLD | NEW |