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

Side by Side Diff: components/arc/intent_helper/arc_intent_helper_bridge.cc

Issue 2623273003: arc: Remove ArcServiceManager::Observer (Closed)
Patch Set: Moved Get() to the manager class per (verbal) feedback from Luis 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 unified diff | Download patch
« no previous file with comments | « components/arc/intent_helper/arc_intent_helper_bridge.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/arc/intent_helper/arc_intent_helper_bridge.h" 5 #include "components/arc/intent_helper/arc_intent_helper_bridge.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/new_window_controller.h" 9 #include "ash/common/new_window_controller.h"
10 #include "ash/common/shell_delegate.h" 10 #include "ash/common/shell_delegate.h"
11 #include "ash/common/wallpaper/wallpaper_controller.h" 11 #include "ash/common/wallpaper/wallpaper_controller.h"
12 #include "ash/common/wm_shell.h" 12 #include "ash/common/wm_shell.h"
13 #include "ash/shell.h" 13 #include "ash/shell.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "components/arc/arc_bridge_service.h" 16 #include "components/arc/arc_bridge_service.h"
17 #include "components/arc/arc_service_manager.h" 17 #include "components/arc/arc_service_manager.h"
18 #include "components/arc/intent_helper/activity_icon_loader.h" 18 #include "components/arc/intent_helper/activity_icon_loader.h"
19 #include "components/arc/intent_helper/link_handler_model_impl.h" 19 #include "components/arc/intent_helper/link_handler_model_impl.h"
20 #include "components/arc/intent_helper/local_activity_resolver.h" 20 #include "components/arc/intent_helper/local_activity_resolver.h"
21 #include "ui/base/layout.h" 21 #include "ui/base/layout.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 namespace arc { 24 namespace arc {
25 25
26 // static 26 // static
27 const char ArcIntentHelperBridge::kArcServiceName[] =
28 "arc::ArcIntentHelperBridge";
29
30 // static
27 const char ArcIntentHelperBridge::kArcIntentHelperPackageName[] = 31 const char ArcIntentHelperBridge::kArcIntentHelperPackageName[] =
28 "org.chromium.arc.intent_helper"; 32 "org.chromium.arc.intent_helper";
29 33
30 ArcIntentHelperBridge::ArcIntentHelperBridge( 34 ArcIntentHelperBridge::ArcIntentHelperBridge(
31 ArcBridgeService* bridge_service, 35 ArcBridgeService* bridge_service,
32 const scoped_refptr<ActivityIconLoader>& icon_loader, 36 const scoped_refptr<ActivityIconLoader>& icon_loader,
33 const scoped_refptr<LocalActivityResolver>& activity_resolver) 37 const scoped_refptr<LocalActivityResolver>& activity_resolver)
34 : ArcService(bridge_service), 38 : ArcService(bridge_service),
35 binding_(this), 39 binding_(this),
36 icon_loader_(icon_loader), 40 icon_loader_(icon_loader),
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void ArcIntentHelperBridge::OnIntentFiltersUpdated( 160 void ArcIntentHelperBridge::OnIntentFiltersUpdated(
157 std::vector<IntentFilter> filters) { 161 std::vector<IntentFilter> filters) {
158 DCHECK(thread_checker_.CalledOnValidThread()); 162 DCHECK(thread_checker_.CalledOnValidThread());
159 activity_resolver_->UpdateIntentFilters(std::move(filters)); 163 activity_resolver_->UpdateIntentFilters(std::move(filters));
160 164
161 for (auto& observer : observer_list_) 165 for (auto& observer : observer_list_)
162 observer.OnIntentFiltersUpdated(); 166 observer.OnIntentFiltersUpdated();
163 } 167 }
164 168
165 } // namespace arc 169 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/intent_helper/arc_intent_helper_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698