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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_event_router.cc

Issue 7803003: Merge 98292 - Show only one error notification per inserted mulitpartitioned usb card. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_event_router.cc
===================================================================
--- chrome/browser/chromeos/extensions/file_browser_event_router.cc (revision 98836)
+++ chrome/browser/chromeos/extensions/file_browser_event_router.cc (working copy)
@@ -184,12 +184,15 @@
chromeos::MountLibrary::Disk* disk =
mount_lib->disks().find(mount_info.source_path)->second;
+ std::string notification_sys_path =
+ disk->system_path().substr(0, disk->system_path().rfind("/block"));
+
if (!error_code) {
HideDeviceNotification(disk->system_path());
} else {
HideDeviceNotification(disk->system_path());
if (!disk->drive_label().empty()) {
- ShowDeviceNotification(disk->system_path(),
+ ShowDeviceNotification(notification_sys_path,
IDR_PAGEINFO_INFO,
// TODO(tbarzic): Find more suitable message.
l10n_util::GetStringFUTF16(
@@ -197,7 +200,7 @@
ASCIIToUTF16(disk->drive_label()),
ASCIIToUTF16(MountErrorToString(error_code))));
} else {
- ShowDeviceNotification(disk->system_path(),
+ ShowDeviceNotification(notification_sys_path,
IDR_PAGEINFO_INFO,
// TODO(tbarzic): Find more suitable message.
l10n_util::GetStringFUTF16(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698