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

Unified Diff: services/ui/ws/drag_controller.cc

Issue 2603893002: Remove mojo::Map. (Closed)
Patch Set: Created 4 years 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
Index: services/ui/ws/drag_controller.cc
diff --git a/services/ui/ws/drag_controller.cc b/services/ui/ws/drag_controller.cc
index ba891a3a235cba3d41da712d617f0e3638c110e8..eff00e80879961ef2acd5ed8688e2e15e022a356 100644
--- a/services/ui/ws/drag_controller.cc
+++ b/services/ui/ws/drag_controller.cc
@@ -46,7 +46,7 @@ DragController::DragController(
ServerWindow* source_window,
DragTargetConnection* source_connection,
int32_t drag_pointer,
- mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data,
+ std::unordered_map<std::string, std::vector<uint8_t>> mime_data,
DropEffectBitmask drag_operations)
: source_(source),
cursor_updater_(cursor_updater),
@@ -216,7 +216,7 @@ void DragController::QueueOperation(ServerWindow* window,
DragTargetConnection* connection = source_->GetDragTargetForWindow(window);
if (connection != source_connection_ &&
!base::ContainsKey(called_on_drag_mime_types_, connection)) {
- connection->PerformOnDragDropStart(mime_data_.Clone());
+ connection->PerformOnDragDropStart(mime_data_);
called_on_drag_mime_types_.insert(connection);
}

Powered by Google App Engine
This is Rietveld 408576698