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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/device_event_router.h

Issue 888083004: Revert "Files.app: Add UMA for HardUnplugged events." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/device_event_router.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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Whether the system is resuming or not. 90 // Whether the system is resuming or not.
91 bool is_resuming_; 91 bool is_resuming_;
92 92
93 // Map of device path and device state. 93 // Map of device path and device state.
94 std::map<std::string, DeviceState> device_states_; 94 std::map<std::string, DeviceState> device_states_;
95 95
96 // Thread checker. 96 // Thread checker.
97 base::ThreadChecker thread_checker_; 97 base::ThreadChecker thread_checker_;
98 98
99 // Last event time for UMA.
100 // TODO(hirono): Remove the temporarily UMA. crbug.com/433734
101 base::Time last_hard_unplugged_;
102 base::Time last_suspend_done_;
103
104 // Note: This should remain the last member so it'll be destroyed and 99 // Note: This should remain the last member so it'll be destroyed and
105 // invalidate the weak pointers before any other members are destroyed. 100 // invalidate the weak pointers before any other members are destroyed.
106 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; 101 base::WeakPtrFactory<DeviceEventRouter> weak_factory_;
107 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); 102 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter);
108 }; 103 };
109 } // namespace file_manager 104 } // namespace file_manager
110 105
111 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _ 106 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/device_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698