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

Unified Diff: components/font_service/public/cpp/font_service_thread.cc

Issue 2483013002: Mojo C++ bindings: Remove more use_new_wrapper_types=false. (Closed)
Patch Set: . Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/font_service/public/cpp/font_service_thread.cc
diff --git a/components/font_service/public/cpp/font_service_thread.cc b/components/font_service/public/cpp/font_service_thread.cc
index 81f8394eb81abb628979327b03b019d5e006059b..69aba5e1fa8451411eba0fa848f62a7ec0998ba8 100644
--- a/components/font_service/public/cpp/font_service_thread.cc
+++ b/components/font_service/public/cpp/font_service_thread.cc
@@ -106,7 +106,7 @@ void FontServiceThread::MatchFamilyNameImpl(
pending_waitable_events_.insert(done_event);
font_service_->MatchFamilyName(
- mojo::String(family_name), std::move(style),
+ family_name, std::move(style),
base::Bind(&FontServiceThread::OnMatchFamilyNameComplete, this,
done_event, out_valid, out_font_identity, out_family_name,
out_style));
@@ -119,7 +119,7 @@ void FontServiceThread::OnMatchFamilyNameComplete(
SkString* out_family_name,
SkFontStyle* out_style,
mojom::FontIdentityPtr font_identity,
- mojo::String family_name,
+ const std::string& family_name,
mojom::TypefaceStylePtr style) {
DCHECK_EQ(GetThreadId(), base::PlatformThread::CurrentId());
pending_waitable_events_.erase(done_event);
« no previous file with comments | « components/font_service/public/cpp/font_service_thread.h ('k') | components/font_service/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698