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

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

Issue 2498223002: arc: enable use_new_wrapper_types for intent_helper.mojom (Closed)
Patch Set: review 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
Index: components/arc/intent_helper/link_handler_model_impl.cc
diff --git a/components/arc/intent_helper/link_handler_model_impl.cc b/components/arc/intent_helper/link_handler_model_impl.cc
index c20d20633ca170fb1094ccae1bcba2302d76a6a5..1b5e1fd7da98896e8bd6f384204246f15c0a753b 100644
--- a/components/arc/intent_helper/link_handler_model_impl.cc
+++ b/components/arc/intent_helper/link_handler_model_impl.cc
@@ -89,7 +89,7 @@ void LinkHandlerModelImpl::OpenLinkWithHandler(const GURL& url,
}
void LinkHandlerModelImpl::OnUrlHandlerList(
- mojo::Array<mojom::IntentHandlerInfoPtr> handlers) {
+ std::vector<mojom::IntentHandlerInfoPtr> handlers) {
handlers_ = ArcIntentHelperBridge::FilterOutIntentHelper(std::move(handlers));
bool icon_info_notified = false;
@@ -129,7 +129,7 @@ void LinkHandlerModelImpl::NotifyObserver(
if (it != icons_.end())
icon = it->second.icon16;
// Use the handler's index as an ID.
- ash::LinkHandlerInfo handler = {handlers_[i]->name.get(), icon, i};
+ ash::LinkHandlerInfo handler = {handlers_[i]->name, icon, i};
handlers.push_back(handler);
}
for (auto& observer : observer_list_)

Powered by Google App Engine
This is Rietveld 408576698