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

Side by Side Diff: chrome/browser/webshare/share_service_impl.cc

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Added OWNERS file to webshare directory 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 unified diff | Download patch
OLDNEW
(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() {}
Sam McNally 2016/12/09 04:23:45 = default;
constantina 2016/12/12 02:50:32 Done.
Matt Giuca 2016/12/12 04:33:04 I think this still has to be in the .cc file to av
13
14 // static
15 void ShareServiceImpl::Create(mojo::InterfaceRequest<ShareService> request) {
Sam McNally 2016/12/09 04:23:45 s/mojo::InterfaceRequest<ShareService>/ShareServic
constantina 2016/12/12 02:50:32 Done.
16 new ShareServiceImpl(std::move(request));
Sam McNally 2016/12/09 04:23:45 This will leak the ShareServiceImpl. Use StrongBin
constantina 2016/12/12 02:50:32 Done.
17 }
18
19 void ShareServiceImpl::Share(const std::string& title,
20 const std::string& text,
21 const GURL& url,
22 const ShareCallback& callback) {
23 // TODO(constantina): Implement Web Share Target here.
24 NOTIMPLEMENTED();
25 callback.Run(base::Optional<std::string>("Not implemented: navigator.share"));
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698