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

Unified Diff: blimp/net/blimp_stats.cc

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/net/blimp_stats.h ('k') | blimp/net/blimp_stats_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_stats.cc
diff --git a/blimp/net/blimp_stats.cc b/blimp/net/blimp_stats.cc
deleted file mode 100644
index 638f9403b02d9dbd6e46bbb78cc8275f8146711f..0000000000000000000000000000000000000000
--- a/blimp/net/blimp_stats.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "blimp/net/blimp_stats.h"
-
-#include "base/logging.h"
-
-namespace blimp {
-
-// static
-base::LazyInstance<BlimpStats> BlimpStats::instance_ =
- LAZY_INSTANCE_INITIALIZER;
-
-// static
-BlimpStats* BlimpStats::GetInstance() {
- return &instance_.Get();
-}
-
-BlimpStats::BlimpStats() {
- for (size_t i = 0; i <= EVENT_TYPE_MAX; ++i) {
- base::subtle::NoBarrier_Store(&values_[i], 0);
- }
-}
-
-BlimpStats::~BlimpStats() {}
-
-void BlimpStats::Add(EventType type, base::subtle::Atomic32 amount) {
- if (amount < 0) {
- DLOG(FATAL) << "Illegal negative stat value: type=" << type
- << ", amount=" << amount << ".";
- return;
- }
-
- base::subtle::NoBarrier_AtomicIncrement(&values_[type], amount);
-}
-
-base::subtle::Atomic32 BlimpStats::Get(EventType type) const {
- return base::subtle::NoBarrier_Load(&values_[type]);
-}
-
-} // namespace blimp
« no previous file with comments | « blimp/net/blimp_stats.h ('k') | blimp/net/blimp_stats_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698