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

Side by Side Diff: chrome/browser/chromeos/device_uma.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chromeos/device_uma.h" 5 #include "chrome/browser/chromeos/device_uma.h"
6 6
7 #include <X11/extensions/XInput.h> 7 #include <X11/extensions/XInput.h>
8 #include <X11/extensions/XInput2.h> 8 #include <X11/extensions/XInput2.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 11 matching lines...) Expand all
22 UMA_CROS_GESTURE_METRICS_NOISY_GROUND, 22 UMA_CROS_GESTURE_METRICS_NOISY_GROUND,
23 // NOTE: Add states only immediately above this line. Make sure to 23 // NOTE: Add states only immediately above this line. Make sure to
24 // update the enum list in tools/metrics/histograms/histograms.xml 24 // update the enum list in tools/metrics/histograms/histograms.xml
25 // accordingly. 25 // accordingly.
26 UMA_CROS_GESTURE_METRICS_COUNT 26 UMA_CROS_GESTURE_METRICS_COUNT
27 }; 27 };
28 28
29 namespace chromeos { 29 namespace chromeos {
30 30
31 DeviceUMA* DeviceUMA::GetInstance() { 31 DeviceUMA* DeviceUMA::GetInstance() {
32 return Singleton<DeviceUMA>::get(); 32 return base::Singleton<DeviceUMA>::get();
33 } 33 }
34 34
35 DeviceUMA::DeviceUMA() 35 DeviceUMA::DeviceUMA()
36 : stopped_(false) { 36 : stopped_(false) {
37 ui::PlatformEventSource::GetInstance()->AddPlatformEventObserver(this); 37 ui::PlatformEventSource::GetInstance()->AddPlatformEventObserver(this);
38 } 38 }
39 39
40 DeviceUMA::~DeviceUMA() { 40 DeviceUMA::~DeviceUMA() {
41 Stop(); 41 Stop();
42 } 42 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 break; 94 break;
95 } 95 }
96 default: 96 default:
97 break; 97 break;
98 } 98 }
99 return; 99 return;
100 } 100 }
101 101
102 } // namespace chromeos 102 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/device_uma.h ('k') | chrome/browser/chromeos/drive/drive_integration_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698