Index: chrome/browser/chromeos/extensions/file_manager/event_router.cc |
diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.cc b/chrome/browser/chromeos/extensions/file_manager/event_router.cc |
index 39714efa619ff4e3b8599da61df0ba6fd7b86434..675e444add05d3de9462dd9e95c1de4be9a314a5 100644 |
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.cc |
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.cc |
@@ -54,10 +54,6 @@ namespace { |
const char kPathChanged[] = "changed"; |
const char kPathWatchError[] = "error"; |
-// Used as a callback for FileSystem::MarkCacheFileAsUnmounted(). |
-void OnMarkAsUnmounted(drive::FileError error) { |
- // Do nothing. |
-} |
void DirectoryExistsOnBlockingPool(const base::FilePath& directory_path, |
const base::Closure& success_callback, |
const base::Closure& failure_callback) { |
@@ -82,23 +78,6 @@ void DirectoryExistsOnUIThread(const base::FilePath& directory_path, |
failure_callback)); |
}; |
-// Creates a base::FilePathWatcher and starts watching at |watch_path| with |
-// |callback|. Returns NULL on failure. |
-base::FilePathWatcher* CreateAndStartFilePathWatcher( |
- const base::FilePath& watch_path, |
- const base::FilePathWatcher::Callback& callback) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
- DCHECK(!callback.is_null()); |
- |
- base::FilePathWatcher* watcher(new base::FilePathWatcher); |
- if (!watcher->Watch(watch_path, false /* recursive */, callback)) { |
- delete watcher; |
- return NULL; |
- } |
- |
- return watcher; |
-} |
- |
// Constants for the "transferState" field of onFileTransferUpdated event. |
const char kFileTransferStateStarted[] = "started"; |
const char kFileTransferStateInProgress[] = "in_progress"; |
@@ -114,11 +93,6 @@ bool IsUploadJob(drive::JobType type) { |
type == drive::TYPE_UPLOAD_EXISTING_FILE); |
} |
-// Utility function to check if |job_info| is a file downloading job. |
-bool IsDownloadJob(drive::JobType type) { |
- return type == drive::TYPE_DOWNLOAD_FILE; |
-} |
- |
// Converts the job info to its JSON (Value) form. |
scoped_ptr<base::DictionaryValue> JobInfoToDictionaryValue( |
const std::string& extension_id, |