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

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: 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // static 156 // static
157 mojom::IntentHelperInstance* ArcIntentHelperBridge::GetIntentHelperInstance( 157 mojom::IntentHelperInstance* ArcIntentHelperBridge::GetIntentHelperInstance(
158 const std::string& method_name_for_logging, 158 const std::string& method_name_for_logging,
159 uint32_t min_instance_version) { 159 uint32_t min_instance_version) {
160 return GetIntentHelperInstanceWithErrorCode(method_name_for_logging, 160 return GetIntentHelperInstanceWithErrorCode(method_name_for_logging,
161 min_instance_version, nullptr); 161 min_instance_version, nullptr);
162 } 162 }
163 163
164 void ArcIntentHelperBridge::OnIntentFiltersUpdated( 164 void ArcIntentHelperBridge::OnIntentFiltersUpdated(
165 std::vector<mojom::IntentFilterPtr> filters) { 165 std::vector<IntentFilter> filters) {
166 DCHECK(thread_checker_.CalledOnValidThread()); 166 DCHECK(thread_checker_.CalledOnValidThread());
167 activity_resolver_->UpdateIntentFilters(std::move(filters)); 167 activity_resolver_->UpdateIntentFilters(std::move(filters));
168 } 168 }
169 169
170 } // namespace arc 170 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698