{"action":"opened","issue":{"url":"https://api.github.com/repos/domokit/mojo/issues/137","labels_url":"https://api.github.com/repos/domokit/mojo/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/domokit/mojo/issues/137/comments","events_url":"https://api.github.com/repos/domokit/mojo/issues/137/events","html_url":"https://github.com/domokit/mojo/issues/137","id":72491582,"number":137,"title":"callback with a type of map<string, handle> fails to compile","user":{"login":"sky2","id":9326562,"avatar_url":"https://avatars.githubusercontent.com/u/9326562?v=3","gravatar_id":"","url":"https://api.github.com/users/sky2","html_url":"https://github.com/sky2","followers_url":"https://api.github.com/users/sky2/followers","following_url":"https://api.github.com/users/sky2/following{/other_user}","gists_url":"https://api.github.com/users/sky2/gists{/gist_id}","starred_url":"https://api.github.com/users/sky2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sky2/subscriptions","organizations_url":"https://api.github.com/users/sky2/orgs","repos_url":"https://api.github.com/users/sky2/repos","events_url":"https://api.github.com/users/sky2/events{/privacy}","received_events_url":"https://api.github.com/users/sky2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-01T18:27:56Z","updated_at":"2015-05-01T18:27:56Z","closed_at":null,"body":"Here's the error:\r\n\r\nFAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/out/Debug2/gen/components/resource_provider/public/interfaces/interfaces_cpp_sources.\\\r\nresource_provider.mojom.o.d -DCHROMIUM_BUILD -DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -DENABLE_MDNS=1 -DENABLE_NOTIFICATIONS -DENABLE_PEPPER_CDMS -DENABLE_PLUGINS\\\r\n=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DUSE_UDEV -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_\\\r\nASH=1 -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_CLIPBOARD_AURAX11=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DENABLE_WEBRTC=1 \\\r\n-DENABLE_EXTENSIONS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_SESSION_SERVICE=1 -DENAB\\\r\nLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_REMOTING=1 -DENABLE_GOOGLE_NOW=1\\\r\n -DENABLE_ONE_CLICK_SIGNIN -DENABLE_HIDPI=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DENABLE_BACKGROUND=1 -DENABLE_PRE_SYNC_BACKUP -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD \\\r\n-DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DCR_CLANG_REVISION=234521-1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MA\\\r\nCROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_GLIBCXX_DEBUG=1 -I../.. -Igen -I../../third_party/mojo/src \\\r\n-Igen/third_party/mojo/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -m64 -march=x86-64 -funwind-tables -fPIC -pipe -pthread -B../../third_p\\\r\narty/binutils/Linux_x64/Release/bin -fcolor-diagnostics -Wall -Wsign-compare -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++1\\\r\n1-narrowing -Wno-char-subscripts -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-reserved-user-defined-literal -Wno-in\\\r\nconsistent-missing-override -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin \\\r\n-Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -O0 -g2 -gsplit-dwarf -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-undefined-bool-conv\\\r\nersion -Wno-tautological-undefined-compare -std=gnu++11 -fno-rtti -fno-exceptions -c gen/components/resource_provider/public/interfaces/resource_provider.mojom.cc \\\r\n-o obj/out/Debug2/gen/components/resource_provider/public/interfaces/interfaces_cpp_sources.resource_provider.mojom.o\r\nIn file included from gen/components/resource_provider/public/interfaces/resource_provider.mojom.cc:19:\r\nIn file included from ../../third_party/mojo/src/mojo/public/cpp/bindings/lib/array_serialization.h:14:\r\n../../third_party/mojo/src/mojo/public/cpp/bindings/lib/map_serialization.h:123:13: error: no viable conversion from 'const mojo::ScopedHandleBase<mojo::Handle>' t\\\r\no 'const mojo::Handle'\r\n            it.GetValue());\r\n            ^~~~~~~~~~~~~\r\ngen/components/resource_provider/public/interfaces/resource_provider.mojom.cc:351:11: note: in instantiation of function template specialization 'mojo::GetSerializ\\\r\nedSize_<mojo::String, mojo::ScopedHandleBase<mojo::Handle> >' requested here\r\n  size += GetSerializedSize_(in_resource_handles);\r\n          ^\r\n../../third_party/mojo/src/mojo/public/cpp/system/handle.h:142:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from \\\r\n'const mojo::ScopedHandleBase<mojo::Handle>' to 'const mojo::Handle &' for 1st argument\r\nclass Handle {\r\n      ^\r\n../../third_party/mojo/src/mojo/public/cpp/bindings/lib/map_serialization.h:56:38: note: passing argument to parameter 'item' here\r\n  static size_t GetItemSize(const H& item) { return 0; }\r\n"}}