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

Unified Diff: chrome/browser/webshare/share_service_impl.cc

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Rebase and sync again 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/webshare/share_service_impl.cc
diff --git a/chrome/browser/webshare/share_service_impl.cc b/chrome/browser/webshare/share_service_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9f8bb0b690e52854f780fdcc5373e8efd5062a3b
--- /dev/null
+++ b/chrome/browser/webshare/share_service_impl.cc
@@ -0,0 +1,22 @@
+// 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 "chrome/browser/webshare/share_service_impl.h"
+
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+// static
+void ShareServiceImpl::Create(blink::mojom::ShareServiceRequest request) {
+ mojo::MakeStrongBinding(base::MakeUnique<ShareServiceImpl>(),
+ std::move(request));
+}
+
+void ShareServiceImpl::Share(const std::string& title,
+ const std::string& text,
+ const GURL& url,
+ const ShareCallback& callback) {
+ // TODO(constantina): Implement Web Share Target here.
+ NOTIMPLEMENTED();
+ callback.Run(base::Optional<std::string>("Not implemented: navigator.share"));
+}
« no previous file with comments | « chrome/browser/webshare/share_service_impl.h ('k') | chrome/browser/webshare/share_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698