Chromium Code Reviews| Index: chrome/browser/chromeos/extensions/file_browser_event_router.cc |
| diff --git a/chrome/browser/chromeos/extensions/file_browser_event_router.cc b/chrome/browser/chromeos/extensions/file_browser_event_router.cc |
| index ec1014bf303cb69f719b5c24ea8f5d9abe2485fe..35444ec786dfbbae787c6bde579cfe4f0e9a8355 100644 |
| --- a/chrome/browser/chromeos/extensions/file_browser_event_router.cc |
| +++ b/chrome/browser/chromeos/extensions/file_browser_event_router.cc |
| @@ -370,6 +370,12 @@ void FileBrowserEventRouter::DispatchMountCompletedEvent( |
| file_manager_util::GetFileBrowserExtensionUrl().GetOrigin(), |
| &source_url)) { |
| mount_info_value->SetString("sourceUrl", source_url.spec()); |
| + } else { |
| + // If mounting of gdata moutn point failed, we may not be able to convert |
|
achuithb
2012/03/21 19:38:29
nit: moutn->mount
|
| + // source path to source url, so let just send empty string. |
| + DCHECK(mount_info.mount_type == chromeos::MOUNT_TYPE_GDATA && |
| + error_code != chromeos::MOUNT_ERROR_NONE); |
| + mount_info_value->SetString("sourceUrl", ""); |
| } |
| } else { |
| mount_info_value->SetString("sourceUrl", mount_info.source_path); |