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..911c84b8361c29e3a98dd52a1de5937ab8938ba0 |
--- /dev/null |
+++ b/chrome/browser/webshare/share_service_impl.cc |
@@ -0,0 +1,25 @@ |
+// 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" |
+ |
+ShareServiceImpl::ShareServiceImpl(blink::mojom::ShareServiceRequest request) |
+ : binding_(this) { |
+ binding_.Bind(std::move(request)); |
+} |
+ |
+ShareServiceImpl::~ShareServiceImpl() {} |
+ |
+// static |
+void ShareServiceImpl::Create(mojo::InterfaceRequest<ShareService> request) { |
+ new ShareServiceImpl(std::move(request)); |
+} |
+ |
+void ShareServiceImpl::Share(const std::string& title, |
+ const std::string& text, |
+ const GURL& url, |
+ const ShareCallback& callback) { |
+ NOTIMPLEMENTED() << "Share called"; |
Matt Giuca
2016/12/08 06:42:56
Add TODO(constantina): ....
Explain briefly that
Matt Giuca
2016/12/08 06:42:56
Get rid of the string (just "NOTIMPLEMENTED();").
constantina
2016/12/09 02:24:14
Done.
constantina
2016/12/09 02:24:14
Done.
Matt Giuca
2016/12/09 02:32:21
nit: No "@" in the TODO; capital "I" in "Implement
constantina
2016/12/09 03:48:27
Done.
|
+ callback.Run(base::Optional<std::string>("Not implemented: navigator.share")); |
+} |