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

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

Issue 2556463003: Use mojo typemaps to simplify arc::IntentFilter::IntentFilter() (reland) (Closed)
Patch Set: Rebased Created 4 years 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
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"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 // static 167 // static
168 mojom::IntentHelperInstance* ArcIntentHelperBridge::GetIntentHelperInstance( 168 mojom::IntentHelperInstance* ArcIntentHelperBridge::GetIntentHelperInstance(
169 const std::string& method_name_for_logging, 169 const std::string& method_name_for_logging,
170 uint32_t min_instance_version) { 170 uint32_t min_instance_version) {
171 return GetIntentHelperInstanceWithErrorCode(method_name_for_logging, 171 return GetIntentHelperInstanceWithErrorCode(method_name_for_logging,
172 min_instance_version, nullptr); 172 min_instance_version, nullptr);
173 } 173 }
174 174
175 void ArcIntentHelperBridge::OnIntentFiltersUpdated( 175 void ArcIntentHelperBridge::OnIntentFiltersUpdated(
176 std::vector<mojom::IntentFilterPtr> filters) { 176 std::vector<IntentFilter> filters) {
177 DCHECK(thread_checker_.CalledOnValidThread()); 177 DCHECK(thread_checker_.CalledOnValidThread());
178 activity_resolver_->UpdateIntentFilters(std::move(filters)); 178 activity_resolver_->UpdateIntentFilters(std::move(filters));
179 179
180 for (auto& observer : observer_list_) 180 for (auto& observer : observer_list_)
181 observer.OnAppsUpdated(); 181 observer.OnAppsUpdated();
182 } 182 }
183 183
184 } // namespace arc 184 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698