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

Unified Diff: components/clipboard/clipboard_standalone_impl.cc

Issue 1683863002: Mojo C++ bindings: make mojo::Map<K,V> more friendly with std::map<K,V>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | mojo/public/cpp/bindings/lib/map_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/clipboard/clipboard_standalone_impl.cc
diff --git a/components/clipboard/clipboard_standalone_impl.cc b/components/clipboard/clipboard_standalone_impl.cc
index 1a5d3b38ed32d8cd0590a8a4a6a0689d9f146ef3..7b7544eecf38a1a67f1c8fc3212ef75d8a8976f6 100644
--- a/components/clipboard/clipboard_standalone_impl.cc
+++ b/components/clipboard/clipboard_standalone_impl.cc
@@ -29,7 +29,7 @@ class ClipboardStandaloneImpl::ClipboardData {
Array<String> types(data_types_.size());
int i = 0;
for (auto it = data_types_.begin(); it != data_types_.end(); ++it, ++i)
- types[i] = it.GetKey();
+ types[i] = it->first;
return types;
}
@@ -41,7 +41,7 @@ class ClipboardStandaloneImpl::ClipboardData {
void GetData(const String& mime_type, Array<uint8_t>* data) const {
auto it = data_types_.find(mime_type);
if (it != data_types_.end())
- *data = it.GetValue().Clone();
+ *data = it->second.Clone();
}
private:
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/lib/map_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698