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

Issue 11365142: Small refactoring in DiskMountManager (event reporting; format method). (Closed)

Created:
8 years, 1 month ago by tbarzic
Modified:
8 years, 1 month ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, tbarzic+watch_chromium.org, achuith+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : few nits #

Patch Set 3 : . #

Patch Set 4 : clangt #

Total comments: 4

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : . #

Patch Set 7 : few lint nits #

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

Messages

Total messages: 10 (0 generated)
tbarzic
next step is to switch CrosDisksClient from using FormatDevice to using Format method and to ...
8 years, 1 month ago (2012-11-08 04:21:17 UTC) #1
satorux1
I don't know enough about DiskMountManager. Please get Ben's feedback first. :) http://codereview.chromium.org/11365142/diff/13001/chromeos/dbus/cros_disks_client.h File chromeos/dbus/cros_disks_client.h ...
8 years, 1 month ago (2012-11-08 08:35:18 UTC) #2
tbarzic
http://codereview.chromium.org/11365142/diff/13001/chromeos/dbus/cros_disks_client.h File chromeos/dbus/cros_disks_client.h (right): http://codereview.chromium.org/11365142/diff/13001/chromeos/dbus/cros_disks_client.h#newcode44 chromeos/dbus/cros_disks_client.h:44: // Mount error code used by cros-disks. On 2012/11/08 ...
8 years, 1 month ago (2012-11-08 19:23:09 UTC) #3
Ben Chan
lgtm https://codereview.chromium.org/11365142/diff/8005/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc File chrome/browser/system_monitor/removable_device_notifications_chromeos.cc (right): https://codereview.chromium.org/11365142/diff/8005/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc#newcode177 chrome/browser/system_monitor/removable_device_notifications_chromeos.cc:177: const std::string& device_path) { missing a TODO / ...
8 years, 1 month ago (2012-11-12 23:10:50 UTC) #4
tbarzic
https://codereview.chromium.org/11365142/diff/8005/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc File chrome/browser/system_monitor/removable_device_notifications_chromeos.cc (right): https://codereview.chromium.org/11365142/diff/8005/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc#newcode177 chrome/browser/system_monitor/removable_device_notifications_chromeos.cc:177: const std::string& device_path) { On 2012/11/12 23:10:50, Ben Chan ...
8 years, 1 month ago (2012-11-12 23:14:39 UTC) #5
satorux1
LGTM
8 years, 1 month ago (2012-11-13 04:20:26 UTC) #6
tbarzic
tbring vandebo@
8 years, 1 month ago (2012-11-14 19:34:48 UTC) #7
vandebo (ex-Chrome)
chrome/browser/system_monitor/* LGTM
8 years, 1 month ago (2012-11-14 21:54:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/11365142/3036
8 years, 1 month ago (2012-11-14 22:50:21 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-11-15 00:56:48 UTC) #10
Change committed as 167799

Powered by Google App Engine
This is Rietveld 408576698