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

Side by Side Diff: components/metrics/net/network_metrics_provider.cc

Issue 2669673002: Revert of Allow ObserverListThreadSafe to be used from sequenced tasks. (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « base/observer_list_unittest.cc ('k') | components/ntp_tiles/most_visited_sites_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/metrics/net/network_metrics_provider.h" 5 #include "components/metrics/net/network_metrics_provider.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/metrics/histogram_macros.h" 15 #include "base/metrics/histogram_macros.h"
16 #include "base/metrics/sparse_histogram.h" 16 #include "base/metrics/sparse_histogram.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_split.h" 18 #include "base/strings/string_split.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/task_runner_util.h" 20 #include "base/task_runner_util.h"
21 #include "base/threading/thread_task_runner_handle.h"
22 #include "build/build_config.h" 21 #include "build/build_config.h"
23 #include "net/base/net_errors.h" 22 #include "net/base/net_errors.h"
24 #include "net/nqe/network_quality_estimator.h" 23 #include "net/nqe/network_quality_estimator.h"
25 24
26 #if defined(OS_CHROMEOS) 25 #if defined(OS_CHROMEOS)
27 #include "components/metrics/net/wifi_access_point_info_provider_chromeos.h" 26 #include "components/metrics/net/wifi_access_point_info_provider_chromeos.h"
28 #endif // OS_CHROMEOS 27 #endif // OS_CHROMEOS
29 28
30 namespace metrics { 29 namespace metrics {
31 30
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 DCHECK(thread_checker_.CalledOnValidThread()); 430 DCHECK(thread_checker_.CalledOnValidThread());
432 if (effective_connection_type_ != type && 431 if (effective_connection_type_ != type &&
433 type != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN && 432 type != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN &&
434 effective_connection_type_ != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN) { 433 effective_connection_type_ != net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN) {
435 effective_connection_type_is_ambiguous_ = true; 434 effective_connection_type_is_ambiguous_ = true;
436 } 435 }
437 effective_connection_type_ = type; 436 effective_connection_type_ = type;
438 } 437 }
439 438
440 } // namespace metrics 439 } // namespace metrics
OLDNEW
« no previous file with comments | « base/observer_list_unittest.cc ('k') | components/ntp_tiles/most_visited_sites_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698