|
Small refactoring in DiskMountManager (event reporting; format method).
* Rename DiskMountManager::Observer methods to On____Event format.
* Break up DiskMountManagerEventType enum.
* Add separate observer method for formatting events.
* Pass formatting event success using bool instead of adding '!' in front of the
path (but only in events from DiskMountManager; will remove it from
CrosDisksClient events in another patch).
* Add unit tests for formatting handling in DiskMountManager.
(TODO: add more tests)
TBR:vandebo@chromium.org
(for mechanical changes in chrome/browser/system_monitor)
BUG= 157587, 126815
TEST=manual: formatting works (and Formatting pending notification goes away)
chromeos_unittests::DiskMountManagerTest.*
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167799
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1005 lines, -251 lines) |
Patch |
 |
M |
chrome/browser/chromeos/extensions/file_browser_event_router.h
|
View
|
1
2
3
4
5
|
3 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/extensions/file_browser_event_router.cc
|
View
|
1
2
3
4
5
|
10 chunks |
+37 lines, -40 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/imageburner/burn_controller.cc
|
View
|
|
1 chunk |
+14 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/system_monitor/removable_device_notifications_chromeos.h
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/system_monitor/removable_device_notifications_chromeos.cc
|
View
|
|
3 chunks |
+13 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/system_monitor/removable_device_notifications_chromeos_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chromeos/chromeos.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/cros_disks_client.h
|
View
|
1
2
3
4
|
3 chunks |
+35 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/cros_disks_client.cc
|
View
|
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/mock_cros_disks_client.h
|
View
|
1
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/mock_cros_disks_client.cc
|
View
|
|
1 chunk |
+34 lines, -1 line |
0 comments
|
Download
|
 |
M |
chromeos/disks/disk_mount_manager.h
|
View
|
1
2
3
|
5 chunks |
+35 lines, -28 lines |
0 comments
|
Download
|
 |
M |
chromeos/disks/disk_mount_manager.cc
|
View
|
1
2
3
4
|
12 chunks |
+146 lines, -112 lines |
0 comments
|
Download
|
 |
A |
chromeos/disks/disk_mount_manager_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+625 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/disks/mock_disk_mount_manager.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chromeos/disks/mock_disk_mount_manager.cc
|
View
|
|
5 chunks |
+8 lines, -14 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|