| Index: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| index 9851d4e96df8c455eb5a035d70dc5162a803a211..93bbb1cf706326d6eb37ff51333a2d3ffe6095f7 100644
|
| --- a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| +++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc
|
| @@ -20,23 +20,6 @@ using content::BrowserThread;
|
|
|
| namespace arc {
|
|
|
| -namespace {
|
| -
|
| -// TODO(nya): Use typemaps.
|
| -ArcFileSystemOperationRunner::ChangeType FromMojoChangeType(
|
| - mojom::ChangeType type) {
|
| - switch (type) {
|
| - case mojom::ChangeType::CHANGED:
|
| - return ArcFileSystemOperationRunner::ChangeType::CHANGED;
|
| - case mojom::ChangeType::DELETED:
|
| - return ArcFileSystemOperationRunner::ChangeType::DELETED;
|
| - }
|
| - NOTREACHED();
|
| - return ArcFileSystemOperationRunner::ChangeType::CHANGED;
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| // static
|
| const char ArcFileSystemOperationRunner::kArcServiceName[] =
|
| "arc::ArcFileSystemOperationRunner";
|
| @@ -245,7 +228,7 @@ void ArcFileSystemOperationRunner::RemoveWatcher(
|
| }
|
|
|
| void ArcFileSystemOperationRunner::OnDocumentChanged(int64_t watcher_id,
|
| - mojom::ChangeType type) {
|
| + ChangeType type) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| auto iter = watcher_callbacks_.find(watcher_id);
|
| if (iter == watcher_callbacks_.end()) {
|
| @@ -254,7 +237,7 @@ void ArcFileSystemOperationRunner::OnDocumentChanged(int64_t watcher_id,
|
| return;
|
| }
|
| WatcherCallback watcher_callback = iter->second;
|
| - watcher_callback.Run(FromMojoChangeType(type));
|
| + watcher_callback.Run(type);
|
| }
|
|
|
| void ArcFileSystemOperationRunner::OnArcPlayStoreEnabledChanged(bool enabled) {
|
|
|