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

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

Issue 2511883003: Use mojo typemaps to simplify arc::IntentFilter::IntentFilter() (Closed)
Patch Set: Addressed comments 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/shell_delegate.h" 9 #include "ash/common/shell_delegate.h"
10 #include "ash/common/wallpaper/wallpaper_controller.h" 10 #include "ash/common/wallpaper/wallpaper_controller.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 // static 164 // static
165 mojom::IntentHelperInstance* ArcIntentHelperBridge::GetIntentHelperInstance( 165 mojom::IntentHelperInstance* ArcIntentHelperBridge::GetIntentHelperInstance(
166 const std::string& method_name_for_logging, 166 const std::string& method_name_for_logging,
167 uint32_t min_instance_version) { 167 uint32_t min_instance_version) {
168 return GetIntentHelperInstanceWithErrorCode(method_name_for_logging, 168 return GetIntentHelperInstanceWithErrorCode(method_name_for_logging,
169 min_instance_version, nullptr); 169 min_instance_version, nullptr);
170 } 170 }
171 171
172 void ArcIntentHelperBridge::OnIntentFiltersUpdated( 172 void ArcIntentHelperBridge::OnIntentFiltersUpdated(
173 std::vector<mojom::IntentFilterPtr> filters) { 173 std::vector<IntentFilter> filters) {
174 DCHECK(thread_checker_.CalledOnValidThread()); 174 DCHECK(thread_checker_.CalledOnValidThread());
175 activity_resolver_->UpdateIntentFilters(std::move(filters)); 175 activity_resolver_->UpdateIntentFilters(std::move(filters));
176 176
177 for (auto& observer : observer_list_) 177 for (auto& observer : observer_list_)
178 observer.OnAppsUpdated(); 178 observer.OnAppsUpdated();
179 } 179 }
180 180
181 } // namespace arc 181 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698