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

Unified Diff: content/renderer/bluetooth/bluetooth_type_converters.cc

Issue 1775953004: bluetooth: Move writeValue to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Moar cleanup Created 4 years, 9 months 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: content/renderer/bluetooth/bluetooth_type_converters.cc
diff --git a/content/renderer/bluetooth/bluetooth_type_converters.cc b/content/renderer/bluetooth/bluetooth_type_converters.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7e36c552c80dff22a9d1b23ec61912dac622d6fd
--- /dev/null
+++ b/content/renderer/bluetooth/bluetooth_type_converters.cc
@@ -0,0 +1,15 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/bluetooth/bluetooth_type_converters.h"
+
+namespace mojo {
+
+// static
+String TypeConverter<String, blink::WebString>::Convert(
+ const blink::WebString& web_string) {
+ return String(web_string.utf8());
+}
+
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698