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

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)

Created:
4 years ago by constantina
Modified:
3 years, 11 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implemented stub ShareService mojo service, for navigator.share. For desktop Linux, Chrome OS and Windows only. Only active behind the --enable-experimental-web-platform-features flag. BUG=668389 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/c8b2173b722aacf39f77de2f98b7a6336d2a3953 Cr-Commit-Position: refs/heads/master@{#438763}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : Wrote unit test. Passed. #

Patch Set 16 : Small refactor of test. Actually added test file. #

Patch Set 17 : Refactor test. #

Patch Set 18 : Refactor test. #

Patch Set 19 : Comment and log cleanup. #

Patch Set 20 : Comment and log cleanup. #

Total comments: 27

Patch Set 21 : Added 'expected' parameter to callback, as per feedback. #

Total comments: 2

Patch Set 22 : Rename variable, as per feedback. #

Patch Set 23 : #

Patch Set 24 : Added OWNERS file to webshare directory #

Total comments: 26

Patch Set 25 : Renamed methods, used aliases, etc. as per feedback. #

Patch Set 26 : Added TearDown #

Patch Set 27 : Refactor to move implementation skeleton to content instead of chrome #

Patch Set 28 : Nits #

Patch Set 29 : Nits #

Total comments: 2

Patch Set 30 : Deleted sneaky file #

Patch Set 31 : Fix nit, as per feedback #

Patch Set 32 : Reverted to chrome version #

Patch Set 33 : Sync and rebase #

Patch Set 34 : Rebase and sync again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -0 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/webshare/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 27 28 29 30 31 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/webshare/share_service_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 30 31 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/webshare/share_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 30 31 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/webshare/share_service_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 30 31 1 chunk +56 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 81 (47 generated)
constantina
4 years ago (2016-12-05 00:13:53 UTC) #8
Matt Giuca
https://codereview.chromium.org/2545323002/diff/60001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2545323002/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode2326 content/browser/frame_host/render_frame_host_impl.cc:2326: switches::kEnableExperimentalWebPlatformFeatures)) { You shouldn't check for this switch directly; ...
4 years ago (2016-12-05 02:21:13 UTC) #13
Matt Giuca
https://codereview.chromium.org/2545323002/diff/140001/content/browser/webshare/share_service_impl.h File content/browser/webshare/share_service_impl.h (right): https://codereview.chromium.org/2545323002/diff/140001/content/browser/webshare/share_service_impl.h#newcode13 content/browser/webshare/share_service_impl.h:13: namespace content { This should be moved to chrome ...
4 years ago (2016-12-05 05:57:46 UTC) #18
constantina
On 2016/12/05 05:57:46, Matt Giuca wrote: > https://codereview.chromium.org/2545323002/diff/140001/content/browser/webshare/share_service_impl.h > File content/browser/webshare/share_service_impl.h (right): > > https://codereview.chromium.org/2545323002/diff/140001/content/browser/webshare/share_service_impl.h#newcode13 ...
4 years ago (2016-12-06 00:49:14 UTC) #19
constantina
4 years ago (2016-12-06 00:49:48 UTC) #20
constantina
Tests added.
4 years ago (2016-12-08 02:21:09 UTC) #33
Matt Giuca
Great start! https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/BUILD.gn#newcode1 chrome/browser/BUILD.gn:1: # Copyright 2014 The Chromium Authors. All ...
4 years ago (2016-12-08 06:42:56 UTC) #36
constantina
https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/BUILD.gn#newcode1 chrome/browser/BUILD.gn:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
4 years ago (2016-12-09 02:24:15 UTC) #38
Matt Giuca
https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/webshare/share_service_impl.cc File chrome/browser/webshare/share_service_impl.cc (right): https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/webshare/share_service_impl.cc#newcode23 chrome/browser/webshare/share_service_impl.cc:23: NOTIMPLEMENTED() << "Share called"; On 2016/12/09 02:24:14, constantina wrote: ...
4 years ago (2016-12-09 02:32:21 UTC) #39
constantina
https://codereview.chromium.org/2545323002/diff/400001/chrome/browser/webshare/share_service_impl_unittest.cc File chrome/browser/webshare/share_service_impl_unittest.cc (right): https://codereview.chromium.org/2545323002/diff/400001/chrome/browser/webshare/share_service_impl_unittest.cc#newcode29 chrome/browser/webshare/share_service_impl_unittest.cc:29: if (!quit_closure_.is_null()) On 2016/12/09 02:32:21, Matt Giuca wrote: > ...
4 years ago (2016-12-09 02:43:01 UTC) #40
constantina
https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/webshare/share_service_impl.cc File chrome/browser/webshare/share_service_impl.cc (right): https://codereview.chromium.org/2545323002/diff/380001/chrome/browser/webshare/share_service_impl.cc#newcode23 chrome/browser/webshare/share_service_impl.cc:23: NOTIMPLEMENTED() << "Share called"; On 2016/12/09 02:32:21, Matt Giuca ...
4 years ago (2016-12-09 03:48:27 UTC) #41
Matt Giuca
Beautiful! lgtm
4 years ago (2016-12-09 03:54:40 UTC) #42
Matt Giuca
Please add an OWNERS file in c/b/webshare with sammc and myself.
4 years ago (2016-12-09 03:58:55 UTC) #43
constantina
sammc@ PTAL jochen@ for OWNERS on chrome/browser and chrome/test c/b/webshare will be the directory for ...
4 years ago (2016-12-09 04:06:06 UTC) #45
Sam McNally
https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.cc File chrome/browser/webshare/share_service_impl.cc (right): https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.cc#newcode12 chrome/browser/webshare/share_service_impl.cc:12: ShareServiceImpl::~ShareServiceImpl() {} = default; https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.cc#newcode15 chrome/browser/webshare/share_service_impl.cc:15: void ShareServiceImpl::Create(mojo::InterfaceRequest<ShareService> request) ...
4 years ago (2016-12-09 04:23:45 UTC) #46
jochen (gone - plz use gerrit)
why is this service in chrome (as opposed to content)? https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.h File chrome/browser/webshare/share_service_impl.h (right): https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.h#newcode28 ...
4 years ago (2016-12-09 08:30:19 UTC) #47
Matt Giuca
On 2016/12/09 08:30:19, jochen wrote: > why is this service in chrome (as opposed to ...
4 years ago (2016-12-11 23:26:38 UTC) #48
constantina
On 2016/12/09 08:30:19, jochen wrote: > why is this service in chrome (as opposed to ...
4 years ago (2016-12-12 02:50:00 UTC) #49
constantina
https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.cc File chrome/browser/webshare/share_service_impl.cc (right): https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.cc#newcode12 chrome/browser/webshare/share_service_impl.cc:12: ShareServiceImpl::~ShareServiceImpl() {} On 2016/12/09 04:23:45, Sam McNally wrote: > ...
4 years ago (2016-12-12 02:50:33 UTC) #50
Matt Giuca
https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.cc File chrome/browser/webshare/share_service_impl.cc (right): https://codereview.chromium.org/2545323002/diff/460001/chrome/browser/webshare/share_service_impl.cc#newcode12 chrome/browser/webshare/share_service_impl.cc:12: ShareServiceImpl::~ShareServiceImpl() {} On 2016/12/12 02:50:32, constantina wrote: > On ...
4 years ago (2016-12-12 04:33:04 UTC) #51
jochen (gone - plz use gerrit)
content has RenderViewTestHarness which is the baseclass of ChromeRenderViewTestHarness - so you should be able ...
4 years ago (2016-12-12 07:46:12 UTC) #52
constantina
PTAL. Refactored so the ShareServiceImpl mojo service implementation and registration is in content/ instead of ...
4 years ago (2016-12-13 05:53:06 UTC) #55
Matt Giuca
lgtm again (with nit). https://codereview.chromium.org/2545323002/diff/560001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2545323002/diff/560001/content/browser/frame_host/render_frame_host_impl.cc#newcode2301 content/browser/frame_host/render_frame_host_impl.cc:2301: OriginTrialPolicy* otp = GetContentClient()->GetOriginTrialPolicy(); nit: ...
4 years ago (2016-12-13 06:06:08 UTC) #56
constantina
https://codereview.chromium.org/2545323002/diff/560001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2545323002/diff/560001/content/browser/frame_host/render_frame_host_impl.cc#newcode2301 content/browser/frame_host/render_frame_host_impl.cc:2301: OriginTrialPolicy* otp = GetContentClient()->GetOriginTrialPolicy(); On 2016/12/13 06:06:08, Matt Giuca ...
4 years ago (2016-12-13 06:09:55 UTC) #57
constantina
Hi all, I have moved the skeleton implementation from chrome to content, however, the actual ...
4 years ago (2016-12-13 06:31:55 UTC) #58
jochen (gone - plz use gerrit)
i'll trust your judgement which version makes more sense, so lgtm for either one
4 years ago (2016-12-14 11:33:19 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2545323002/610001
4 years ago (2016-12-15 00:39:32 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/315143)
4 years ago (2016-12-15 00:47:20 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2545323002/650001
4 years ago (2016-12-15 02:12:39 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/350443)
4 years ago (2016-12-15 02:19:36 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2545323002/650001
4 years ago (2016-12-15 04:48:45 UTC) #73
commit-bot: I haz the power
Committed patchset #34 (id:650001)
4 years ago (2016-12-15 05:56:26 UTC) #76
commit-bot: I haz the power
Patchset 34 (id:??) landed as https://crrev.com/c8b2173b722aacf39f77de2f98b7a6336d2a3953 Cr-Commit-Position: refs/heads/master@{#438763}
4 years ago (2016-12-15 05:59:17 UTC) #78
dcheng
4 years ago (2016-12-21 19:50:24 UTC) #80
Message was sent while issue was closed.
Normally, we don't add things to mojoms without reviewing the implementation as
well. Please make sure to include an IPC security reviewer on followup CLs that
actually implement the browser-side service. Thanks.

Powered by Google App Engine
This is Rietveld 408576698