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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc

Issue 2727113002: mediaview: Add a typemap for arc::mojom::ChangeType. (Closed)
Patch Set: Rebased to ToT. Created 3 years, 10 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 | « chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85c094ae3b4d5b9d3d566753990ac32c45a82ae5..d597e1ae113329c21fa5aabe9969903eb0debf0a 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) {
« no previous file with comments | « chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698