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

Side by Side Diff: components/device_event_log/device_event_log.cc

Issue 919183002: Move chromeos::device_event_log into components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Shut down in PostDestroyThreads. Created 5 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
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 "chromeos/device_event_log.h" 5 #include "components/device_event_log/device_event_log.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chromeos/device_event_log_impl.h" 10 #include "components/device_event_log/device_event_log_impl.h"
11
12 namespace chromeos {
13 11
14 namespace device_event_log { 12 namespace device_event_log {
15 13
16 namespace { 14 namespace {
17 15
18 const size_t kDefaultMaxEntries = 4000; 16 const size_t kDefaultMaxEntries = 4000;
19 17
20 const int kSlowMethodThresholdMs = 10; 18 const int kSlowMethodThresholdMs = 10;
21 const int kVerySlowMethodThresholdMs = 50; 19 const int kVerySlowMethodThresholdMs = 50;
22 20
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 level = LOG_LEVEL_ERROR; 97 level = LOG_LEVEL_ERROR;
100 DEVICE_LOG(type_, level) << "@@@ Slow method: " << file_ << ":" << name_ 98 DEVICE_LOG(type_, level) << "@@@ Slow method: " << file_ << ":" << name_
101 << ": " << timer_.Elapsed().InMilliseconds() 99 << ": " << timer_.Elapsed().InMilliseconds()
102 << "ms"; 100 << "ms";
103 } 101 }
104 } 102 }
105 103
106 } // namespace internal 104 } // namespace internal
107 105
108 } // namespace device_event_log 106 } // namespace device_event_log
109
110 } // namespace chromeos
OLDNEW
« no previous file with comments | « components/device_event_log/device_event_log.h ('k') | components/device_event_log/device_event_log_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698