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

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

Issue 2655233007: Get rid of RefCounted for ActivityIconLoader. (Closed)
Patch Set: Created 3 years, 11 months 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 2a3a5676dd699a541a8d59caabe1ae7be1bb6309..9fdf8168e5dc8ae9de0513a6963b168ce96e37da 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.h
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.h
@@ -17,6 +17,7 @@
#include "components/arc/arc_service.h"
#include "components/arc/common/intent_helper.mojom.h"
#include "components/arc/instance_holder.h"
+#include "components/arc/intent_helper/activity_icon_loader.h"
#include "components/arc/intent_helper/arc_intent_helper_observer.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -28,7 +29,6 @@ class LinkHandlerModel;
namespace arc {
-class ActivityIconLoader;
class ArcBridgeService;
class IntentFilter;
class LocalActivityResolver;
@@ -51,13 +51,14 @@ class ArcIntentHelperBridge
ArcIntentHelperBridge(
ArcBridgeService* bridge_service,
- const scoped_refptr<ActivityIconLoader>& icon_loader,
const scoped_refptr<LocalActivityResolver>& activity_resolver);
~ArcIntentHelperBridge() override;
void AddObserver(ArcIntentHelperObserver* observer);
void RemoveObserver(ArcIntentHelperObserver* observer);
+ ActivityIconLoader* icon_loader() { return &icon_loader_; }
hidehiko 2017/01/27 16:04:06 Note: or, alternatively we may want to provide Get
Yusuke Sato 2017/01/27 18:21:17 Just in case, can you mention that the returned po
hidehiko 2017/01/30 17:04:03 Instead, I removed this method, in the new PS.
+
// InstanceHolder<mojom::IntentHelperInstance>::Observer
void OnInstanceReady() override;
void OnInstanceClosed() override;
@@ -93,7 +94,7 @@ class ArcIntentHelperBridge
private:
mojo::Binding<mojom::IntentHelperHost> binding_;
- scoped_refptr<ActivityIconLoader> icon_loader_;
+ ActivityIconLoader icon_loader_;
scoped_refptr<LocalActivityResolver> activity_resolver_;
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698