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

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

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Nits 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 "content/browser/webshare/share_service_impl.h"
6
7 #include "mojo/public/cpp/bindings/strong_binding.h"
8
9 // static
10 void ShareServiceImpl::Create(blink::mojom::ShareServiceRequest request) {
11 mojo::MakeStrongBinding(base::MakeUnique<ShareServiceImpl>(),
12 std::move(request));
13 }
14
15 void ShareServiceImpl::Share(const std::string& title,
16 const std::string& text,
17 const GURL& url,
18 const ShareCallback& callback) {
19 // TODO(constantina): Implement Web Share Target here.
20 NOTIMPLEMENTED();
21 callback.Run(base::Optional<std::string>("Not implemented: navigator.share"));
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698