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

Unified Diff: mojo/converters/network/network_type_converters.cc

Issue 1407073002: Adds GetDisplays() to WindowManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 5 years, 2 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
« no previous file with comments | « mojo/converters/network/network_type_converters.h ('k') | ui/mojo/init/screen_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/network/network_type_converters.cc
diff --git a/mojo/converters/network/network_type_converters.cc b/mojo/converters/network/network_type_converters.cc
new file mode 100644
index 0000000000000000000000000000000000000000..94109da05f7c6ab60d72f1f8e68a68345df92934
--- /dev/null
+++ b/mojo/converters/network/network_type_converters.cc
@@ -0,0 +1,17 @@
+// Copyright 2015 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 "mojo/converters/network/network_type_converters.h"
+
+namespace mojo {
+
+// static
+URLRequestPtr TypeConverter<URLRequestPtr, std::string>::Convert(
+ const std::string& input) {
+ URLRequestPtr result(URLRequest::New());
+ result->url = input;
+ return result.Pass();
+}
+
+} // namespace mojo
« no previous file with comments | « mojo/converters/network/network_type_converters.h ('k') | ui/mojo/init/screen_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698