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

Unified Diff: components/arc/ime/arc_ime_bridge_impl.cc

Issue 2495913002: arc: Convert more Mojo types to STL (Closed)
Patch Set: Rebased to ToT Created 4 years, 1 month 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 | « components/arc/BUILD.gn ('k') | components/arc/metrics/arc_metrics_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/ime/arc_ime_bridge_impl.cc
diff --git a/components/arc/ime/arc_ime_bridge_impl.cc b/components/arc/ime/arc_ime_bridge_impl.cc
index 6faa6f3a7b126cec33be5354f867c41d2c888db9..aa36d4f88b6bd2f79fccf4ad2ed71c9bdf9346e8 100644
--- a/components/arc/ime/arc_ime_bridge_impl.cc
+++ b/components/arc/ime/arc_ime_bridge_impl.cc
@@ -5,6 +5,7 @@
#include "components/arc/ime/arc_ime_bridge_impl.h"
#include <utility>
+#include <vector>
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
@@ -56,10 +57,9 @@ ui::TextInputType ConvertTextInputType(mojom::TextInputType ipc_type) {
}
}
-mojo::Array<mojom::CompositionSegmentPtr> ConvertSegments(
+std::vector<mojom::CompositionSegmentPtr> ConvertSegments(
const ui::CompositionText& composition) {
- mojo::Array<mojom::CompositionSegmentPtr> segments =
- mojo::Array<mojom::CompositionSegmentPtr>::New(0);
+ std::vector<mojom::CompositionSegmentPtr> segments;
for (const ui::CompositionUnderline& underline : composition.underlines) {
mojom::CompositionSegmentPtr segment = mojom::CompositionSegment::New();
segment->start_offset = underline.start_offset;
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/metrics/arc_metrics_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698