diff options
author | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-11 05:18:26 +0000 |
---|---|---|
committer | tbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-11 05:18:26 +0000 |
commit | b2a36148753bb53cfe9127aef044f4a424df3e1c (patch) | |
tree | 76c40771392e23cfcc5ac5aa293bd0c5407b79f0 /chrome/browser/chromeos/imageburner | |
parent | 685415ff649df1ca1f06f2677c9c8fbc7d2bcc97 (diff) | |
download | chromium_src-b2a36148753bb53cfe9127aef044f4a424df3e1c.zip chromium_src-b2a36148753bb53cfe9127aef044f4a424df3e1c.tar.gz chromium_src-b2a36148753bb53cfe9127aef044f4a424df3e1c.tar.bz2 |
Hide scanning notification when device with no media is detected.
Also, we should not allow burning to those devices.
BUG=chromium-os:27894
TEST=manual
Review URL: http://codereview.chromium.org/9969148
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/imageburner')
-rw-r--r-- | chrome/browser/chromeos/imageburner/burn_controller.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/imageburner/burn_controller.cc b/chrome/browser/chromeos/imageburner/burn_controller.cc index 197b1b1..f83f23a 100644 --- a/chrome/browser/chromeos/imageburner/burn_controller.cc +++ b/chrome/browser/chromeos/imageburner/burn_controller.cc @@ -26,7 +26,7 @@ const uint64 kMinDeviceSize = static_cast<uint64>(3.9 * 1000 * 1000 * 1000); // Returns true when |disk| is a device on which we can burn recovery image. bool IsBurnableDevice(const disks::DiskMountManager::Disk& disk) { - return disk.is_parent() && !disk.on_boot_device() && + return disk.is_parent() && !disk.on_boot_device() && disk.has_media() && (disk.device_type() == DEVICE_TYPE_USB || disk.device_type() == DEVICE_TYPE_SD); } |