Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/desktop_background/user_wallpaper_delegate.h" | 9 #include "ash/desktop_background/user_wallpaper_delegate.h" |
| 10 #include "ash/new_window_delegate.h" | 10 #include "ash/new_window_delegate.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 mojo::Array<mojom::UrlHandlerInfoPtr> handlers) { | 88 mojo::Array<mojom::UrlHandlerInfoPtr> handlers) { |
| 89 mojo::Array<mojom::UrlHandlerInfoPtr> handlers_filtered; | 89 mojo::Array<mojom::UrlHandlerInfoPtr> handlers_filtered; |
| 90 for (auto& handler : handlers) { | 90 for (auto& handler : handlers) { |
| 91 if (IsIntentHelperPackage(handler->package_name.get())) | 91 if (IsIntentHelperPackage(handler->package_name.get())) |
| 92 continue; | 92 continue; |
| 93 handlers_filtered.push_back(std::move(handler)); | 93 handlers_filtered.push_back(std::move(handler)); |
| 94 } | 94 } |
| 95 return handlers_filtered; | 95 return handlers_filtered; |
| 96 } | 96 } |
| 97 | 97 |
| 98 void ArcIntentHelperBridge::OnIntentFiltersUpdated( | |
| 99 mojo::Array<mojom::IntentFilterPtr> filters) { | |
| 100 // TODO(29248657): Store the filters and implement matching. | |
|
Luis Héctor Chávez
2016/06/16 22:45:20
In the past, we've required having an implementati
Yusuke Sato
2016/06/16 23:42:18
What we could do I think is to remember |filters|
zentaro
2016/06/17 21:42:25
Done.
| |
| 101 } | |
| 102 | |
| 98 } // namespace arc | 103 } // namespace arc |
| OLD | NEW |