[Extensions Bindings] Clean up i18n custom bindings value construction
The i18n custom bindings create v8 values from results for language detection, but do so in an inefficient way (constructing a base::Value and then converting to v8::Value). Update this to use gin::DataObjectBuilder to construct the v8 value directly, and, while we're at it, use some C++11 awesomeness in movable types. Bug: None Change-Id: I80597627b0b3803e50ecbe34009682161d178c7d Reviewed-on: https://chromium-review.googlesource.com/892202Reviewed-by:Jeremy Roman <jbroman@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#532968}
Showing
Please register or sign in to comment