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

Unified Diff: components/arc/intent_helper/local_activity_resolver.cc

Issue 2556463003: Use mojo typemaps to simplify arc::IntentFilter::IntentFilter() (reland) (Closed)
Patch Set: Rebased 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: components/arc/intent_helper/local_activity_resolver.cc
diff --git a/components/arc/intent_helper/local_activity_resolver.cc b/components/arc/intent_helper/local_activity_resolver.cc
index b9939d423ce492a7ae87f832614aceb47aa0b36b..8ea0c55bf4b68a17b2837bfae171f8120e8563bf 100644
--- a/components/arc/intent_helper/local_activity_resolver.cc
+++ b/components/arc/intent_helper/local_activity_resolver.cc
@@ -28,10 +28,8 @@ bool LocalActivityResolver::ShouldChromeHandleUrl(const GURL& url) {
}
void LocalActivityResolver::UpdateIntentFilters(
- std::vector<mojom::IntentFilterPtr> mojo_intent_filters) {
- intent_filters_.clear();
- for (mojom::IntentFilterPtr& mojo_filter : mojo_intent_filters)
- intent_filters_.emplace_back(mojo_filter);
+ std::vector<IntentFilter> intent_filters) {
+ intent_filters_ = std::move(intent_filters);
}
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698