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

Unified Diff: components/arc/intent_helper/arc_intent_helper_bridge.h

Issue 2498223002: arc: enable use_new_wrapper_types for intent_helper.mojom (Closed)
Patch Set: rebase 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/arc_intent_helper_bridge.h
diff --git a/components/arc/intent_helper/arc_intent_helper_bridge.h b/components/arc/intent_helper/arc_intent_helper_bridge.h
index c52eb9a809c27627f34814a78ed72ebf171b0e17..eba6e10fe7e7b85c3c0d62770f11433a67d04e24 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.h
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.h
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
+#include <vector>
#include "ash/link_handler_model_factory.h"
#include "base/macros.h"
@@ -57,13 +58,13 @@ class ArcIntentHelperBridge
void OnInstanceClosed() override;
// mojom::IntentHelperHost
- void OnIconInvalidated(const mojo::String& package_name) override;
+ void OnIconInvalidated(const std::string& package_name) override;
void OnIntentFiltersUpdated(
- mojo::Array<mojom::IntentFilterPtr> intent_filters) override;
+ std::vector<mojom::IntentFilterPtr> intent_filters) override;
void OnOpenDownloads() override;
- void OnOpenUrl(const mojo::String& url) override;
+ void OnOpenUrl(const std::string& url) override;
void OpenWallpaperPicker() override;
- void SetWallpaperDeprecated(mojo::Array<uint8_t> jpeg_data) override;
+ void SetWallpaperDeprecated(const std::vector<uint8_t>& jpeg_data) override;
// ash::LinkHandlerModelFactory
std::unique_ptr<ash::LinkHandlerModel> CreateModel(const GURL& url) override;
@@ -73,8 +74,8 @@ class ArcIntentHelperBridge
// Filters out handlers that belong to the intent_helper apk and returns
// a new array.
- static mojo::Array<mojom::IntentHandlerInfoPtr> FilterOutIntentHelper(
- mojo::Array<mojom::IntentHandlerInfoPtr> handlers);
+ static std::vector<mojom::IntentHandlerInfoPtr> FilterOutIntentHelper(
+ std::vector<mojom::IntentHandlerInfoPtr> handlers);
// Gets the mojo instance if it's available. On failure, returns nullptr and
// updates |out_error_code| if it's not nullptr.
« no previous file with comments | « components/arc/intent_helper/activity_icon_loader.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698