OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/webshare/share_service_impl.h" | |
6 | |
7 ShareServiceImpl::ShareServiceImpl(blink::mojom::ShareServiceRequest request) | |
8 : binding_(this) { | |
9 binding_.Bind(std::move(request)); | |
10 } | |
11 | |
12 ShareServiceImpl::~ShareServiceImpl() {} | |
13 | |
14 // static | |
15 void ShareServiceImpl::Create(mojo::InterfaceRequest<ShareService> request) { | |
16 new ShareServiceImpl(std::move(request)); | |
17 } | |
18 | |
19 void ShareServiceImpl::Share(const std::string& title, | |
20 const std::string& text, | |
21 const GURL& url, | |
22 const ShareCallback& callback) { | |
23 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.
| |
24 callback.Run(base::Optional<std::string>("Not implemented: navigator.share")); | |
25 } | |
OLD | NEW |