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

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

Issue 10391103: [File Manager] Add/remove Google Drive folder in the open File Manager when Drive enabled/disabled … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 | chrome/browser/chromeos/extensions/file_browser_private_api.h » ('j') | 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
diff --git a/chrome/browser/chromeos/extensions/file_browser_event_router.cc b/chrome/browser/chromeos/extensions/file_browser_event_router.cc
index d8c7284eba5f588a3df37774f1f92490c3a76777..6ecebdfd6524d6e80a67d40a2c61a358c1460693 100644
--- a/chrome/browser/chromeos/extensions/file_browser_event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_event_router.cc
@@ -158,6 +158,7 @@ void FileBrowserEventRouter::ObserveFileSystemEvents() {
pref_change_registrar_->Init(profile_->GetPrefs());
pref_change_registrar_->Add(prefs::kDisableGDataOverCellular, this);
pref_change_registrar_->Add(prefs::kDisableGDataHostedFiles, this);
+ pref_change_registrar_->Add(prefs::kDisableGData, this);
}
// File watch setup routines.
@@ -509,6 +510,10 @@ void FileBrowserEventRouter::DispatchMountCompletedEvent(
mount_info_value->SetString("mountPath",
"/" + relative_mount_path.value());
relative_mount_path_set = true;
+ } else {
+ LOG(ERROR) << "Mount path is not accessible: " << mount_info.mount_path;
+ mount_info_value->SetString("status",
+ MountErrorToString(chromeos::MOUNT_ERROR_PATH_UNMOUNTED));
}
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698