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

Issue 2072613003: Convert GetSearchProviderInstallState to Mojo (Closed)

Created:
4 years, 6 months ago by tibell
Modified:
4 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert GetSearchProviderInstallState to Mojo Committed: https://crrev.com/be180334960710cf63734aeffc8046df6144e197 Cr-Commit-Position: refs/heads/master@{#406782}

Patch Set 1 #

Patch Set 2 : Remove reference to temp file #

Patch Set 3 : Tweak visibility #

Patch Set 4 : Depend on skia #

Patch Set 5 : Ready for testing #

Patch Set 6 : Actually register service #

Patch Set 7 : Fix missing dependency #

Patch Set 8 : Fix Gyp #

Total comments: 14

Patch Set 9 : Rename to search_provider.mojom #

Total comments: 6

Patch Set 10 : Address review comments #

Patch Set 11 : Try to make move look like a move #

Patch Set 12 : Factor out service registration #

Patch Set 13 : Re-add removed import #

Patch Set 14 : Small twiddles #

Total comments: 15

Patch Set 15 : Address review comments #

Patch Set 16 : Document GetInstallState arguments #

Patch Set 17 : Change security owners #

Total comments: 4

Patch Set 18 : Move InstallState enum into mojom #

Total comments: 24

Patch Set 19 : Remove stray deps after enum move #

Patch Set 20 : Address sammc's review comments #

Total comments: 1

Patch Set 21 : Rename filter to impl for clarity #

Total comments: 9

Patch Set 22 : Generalize ownership management #

Patch Set 23 : Make the connection handler configurable #

Patch Set 24 : Add missing owned_service.h file #

Patch Set 25 : Rationalize the interface impl ownership #

Patch Set 26 : Run impl destructor on correct task runner #

Patch Set 27 : Fix shutdown crash #

Patch Set 28 : Rename service to interface #

Patch Set 29 : Missed rename #

Patch Set 30 : Rebase #

Patch Set 31 : Add missing gyp mojom dep to browser target #

Patch Set 32 : Merge #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -322 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 1 chunk +1 line, -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 2 chunks +6 lines, -2 lines 0 comments Download
A + chrome/browser/search_engines/search_provider_install_state_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 25 26 27 2 chunks +25 lines, -19 lines 0 comments Download
A + chrome/browser/search_engines/search_provider_install_state_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 25 26 27 3 chunks +39 lines, -46 lines 2 comments Download
M chrome/browser/search_engines/search_provider_install_state_message_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -59 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_state_message_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -111 lines 0 comments Download
M chrome/chrome_browser.gypi 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 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi 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 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/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 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/common/search_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -21 lines 0 comments Download
A + chrome/common/search_provider.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +14 lines, -20 lines 0 comments Download
M chrome/renderer/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 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/external_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +12 lines, -31 lines 0 comments Download
M content/browser/renderer_host/render_process_host_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 25 26 27 28 29 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_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 25 26 27 28 29 30 31 2 chunks +6 lines, -0 lines 0 comments Download
M content/content_browser.gypi 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 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/owned_interface.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 25 26 27 1 chunk +69 lines, -0 lines 0 comments Download
M content/public/browser/render_process_host.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 25 26 27 3 chunks +34 lines, -1 line 0 comments Download
M content/public/test/mock_render_process_host.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 25 26 27 3 chunks +3 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.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 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (27 generated)
tibell
Ready for a first look.
4 years, 6 months ago (2016-06-20 00:40:00 UTC) #2
Sam McNally
https://codereview.chromium.org/2072613003/diff/130001/chrome/browser/search_engines/search_provider_install_state_message_filter.h File chrome/browser/search_engines/search_provider_install_state_message_filter.h (right): https://codereview.chromium.org/2072613003/diff/130001/chrome/browser/search_engines/search_provider_install_state_message_filter.h#newcode24 chrome/browser/search_engines/search_provider_install_state_message_filter.h:24: class SearchProviderInstallStateMessageFilter Rename this to SearchProviderInstallStateImpl and rename the ...
4 years, 6 months ago (2016-06-20 01:27:12 UTC) #3
tibell
PTAL https://codereview.chromium.org/2072613003/diff/130001/chrome/browser/search_engines/search_provider_install_state_message_filter.h File chrome/browser/search_engines/search_provider_install_state_message_filter.h (right): https://codereview.chromium.org/2072613003/diff/130001/chrome/browser/search_engines/search_provider_install_state_message_filter.h#newcode24 chrome/browser/search_engines/search_provider_install_state_message_filter.h:24: class SearchProviderInstallStateMessageFilter On 2016/06/20 01:27:11, Sam McNally wrote: ...
4 years, 6 months ago (2016-06-20 03:19:55 UTC) #4
tibell
Hi! We've started converting some old Chrome IPCs to Mojo. This is one of those ...
4 years, 6 months ago (2016-06-20 03:54:45 UTC) #6
Sam McNally
https://codereview.chromium.org/2072613003/diff/250001/chrome/browser/search_engines/search_provider_install_state_impl.h File chrome/browser/search_engines/search_provider_install_state_impl.h (right): https://codereview.chromium.org/2072613003/diff/250001/chrome/browser/search_engines/search_provider_install_state_impl.h#newcode77 chrome/browser/search_engines/search_provider_install_state_impl.h:77: class SearchProviderInstallStateImplAdapter Can this move into the .cc file?
4 years, 6 months ago (2016-06-20 08:05:18 UTC) #7
sky
https://codereview.chromium.org/2072613003/diff/250001/chrome/browser/search_engines/search_provider_install_state_impl.cc File chrome/browser/search_engines/search_provider_install_state_impl.cc (right): https://codereview.chromium.org/2072613003/diff/250001/chrome/browser/search_engines/search_provider_install_state_impl.cc#newcode46 chrome/browser/search_engines/search_provider_install_state_impl.cc:46: host->GetServiceRegistry()->AddService<mojom::SearchProviderInstallState>( I'm not familiar with the threading requirements of ...
4 years, 6 months ago (2016-06-20 15:20:26 UTC) #8
tibell
PTAL levin, could you please help with the documentation of the page_url and inquiry_url args ...
4 years, 6 months ago (2016-06-21 01:31:32 UTC) #10
tibell
4 years, 6 months ago (2016-06-21 01:32:42 UTC) #12
tibell
sievers@ for DEPS dcheng@ for render_messages.h
4 years, 6 months ago (2016-06-21 01:35:38 UTC) #14
levin
https://codereview.chromium.org/2072613003/diff/250001/chrome/common/search_provider.mojom File chrome/common/search_provider.mojom (right): https://codereview.chromium.org/2072613003/diff/250001/chrome/common/search_provider.mojom#newcode17 chrome/common/search_provider.mojom:17: url.mojom.Url page_url, On 2016/06/21 01:31:32, tibell wrote: > On ...
4 years, 6 months ago (2016-06-21 01:48:45 UTC) #16
levin
4 years, 6 months ago (2016-06-21 01:48:47 UTC) #18
tibell
On 2016/06/21 01:48:47, levin wrote: Thanks levin! I've updated the docs based on your comments.
4 years, 6 months ago (2016-06-21 02:50:57 UTC) #19
sky
LGTM
4 years, 6 months ago (2016-06-21 16:11:01 UTC) #20
no sievers
On 2016/06/21 01:35:38, tibell wrote: > sievers@ for DEPS > dcheng@ for render_messages.h lgtm
4 years, 6 months ago (2016-06-21 18:42:07 UTC) #21
dcheng
This is a lot of boilerplate to register one service. Is every other mojo service ...
4 years, 6 months ago (2016-06-21 19:14:55 UTC) #22
tibell
> This is a lot of boilerplate to register one service. Is every other mojo ...
4 years, 6 months ago (2016-06-23 02:47:17 UTC) #24
Sam McNally
https://codereview.chromium.org/2072613003/diff/330001/chrome/browser/search_engines/search_provider_install_state_impl.cc File chrome/browser/search_engines/search_provider_install_state_impl.cc (right): https://codereview.chromium.org/2072613003/diff/330001/chrome/browser/search_engines/search_provider_install_state_impl.cc#newcode14 chrome/browser/search_engines/search_provider_install_state_impl.cc:14: #include "chrome/common/render_messages.h" Remove. https://codereview.chromium.org/2072613003/diff/330001/chrome/browser/search_engines/search_provider_install_state_impl.h File chrome/browser/search_engines/search_provider_install_state_impl.h (right): https://codereview.chromium.org/2072613003/diff/330001/chrome/browser/search_engines/search_provider_install_state_impl.h#newcode8 chrome/browser/search_engines/search_provider_install_state_impl.h:8: ...
4 years, 6 months ago (2016-06-23 03:05:36 UTC) #25
tibell
PTAL https://codereview.chromium.org/2072613003/diff/330001/chrome/browser/search_engines/search_provider_install_state_impl.cc File chrome/browser/search_engines/search_provider_install_state_impl.cc (right): https://codereview.chromium.org/2072613003/diff/330001/chrome/browser/search_engines/search_provider_install_state_impl.cc#newcode14 chrome/browser/search_engines/search_provider_install_state_impl.cc:14: #include "chrome/common/render_messages.h" On 2016/06/23 03:05:35, Sam McNally wrote: ...
4 years, 6 months ago (2016-06-23 03:44:39 UTC) #26
Sam McNally
lgtm https://codereview.chromium.org/2072613003/diff/370001/chrome/browser/search_engines/search_provider_install_state_impl.cc File chrome/browser/search_engines/search_provider_install_state_impl.cc (right): https://codereview.chromium.org/2072613003/diff/370001/chrome/browser/search_engines/search_provider_install_state_impl.cc#newcode43 chrome/browser/search_engines/search_provider_install_state_impl.cc:43: content::BrowserThread::DeleteOnIOThread> filter) filter?
4 years, 6 months ago (2016-06-23 03:48:04 UTC) #27
tibell
dcheng can you please take another look? Thanks!
4 years, 5 months ago (2016-06-27 00:48:39 UTC) #28
tibell
On 2016/06/27 00:48:39, tibell wrote: > dcheng can you please take another look? Thanks! dcheng, ...
4 years, 5 months ago (2016-06-29 03:44:30 UTC) #29
dcheng
I'm honestly not entirely comfortable with this CL, because I think the ownership/lifetime semantics are ...
4 years, 5 months ago (2016-07-04 06:46:29 UTC) #30
dcheng
https://codereview.chromium.org/2072613003/diff/390001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2072613003/diff/390001/chrome/browser/chrome_content_browser_client.cc#newcode952 chrome/browser/chrome_content_browser_client.cc:952: SearchProviderInstallStateImpl::InstallService(host); On 2016/07/04 06:46:29, dcheng wrote: > Nit: Let's ...
4 years, 5 months ago (2016-07-04 07:42:48 UTC) #31
tibell
Thanks for reviewing! On 2016/07/04 06:46:29, dcheng wrote: > I'm honestly not entirely comfortable with ...
4 years, 5 months ago (2016-07-05 04:10:41 UTC) #32
tibell
It's worth adding that this CL happens to be a bit more complicated than the ...
4 years, 5 months ago (2016-07-05 04:14:14 UTC) #33
tibell
dcheng, any more thoughts on this? Do you consider this CL blocked until we've resolved ...
4 years, 5 months ago (2016-07-12 05:06:08 UTC) #34
dcheng
On 2016/07/12 05:06:08, tibell wrote: > dcheng, any more thoughts on this? Do you consider ...
4 years, 5 months ago (2016-07-12 05:22:59 UTC) #35
tibell
PTAL. I took a new, different stab at this. * Impls are now owned by ...
4 years, 5 months ago (2016-07-15 00:47:08 UTC) #36
tibell
+mbarbella for security review
4 years, 5 months ago (2016-07-20 02:52:09 UTC) #42
Martin Barbella
On 2016/07/20 02:52:09, tibell wrote: > +mbarbella for security review mojom/render_messages.h lgtm
4 years, 5 months ago (2016-07-20 16:58:06 UTC) #43
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/2072613003/570001
4 years, 5 months ago (2016-07-21 00:21:08 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gyp_rel on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gyp_rel/builds/2945)
4 years, 5 months ago (2016-07-21 01:03:26 UTC) #48
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/2072613003/610001
4 years, 5 months ago (2016-07-21 05:43:22 UTC) #58
commit-bot: I haz the power
Committed patchset #32 (id:610001)
4 years, 5 months ago (2016-07-21 06:22:23 UTC) #59
commit-bot: I haz the power
Patchset 32 (id:??) landed as https://crrev.com/be180334960710cf63734aeffc8046df6144e197 Cr-Commit-Position: refs/heads/master@{#406782}
4 years, 5 months ago (2016-07-21 06:23:52 UTC) #61
yzshen1
(A drive-by comment. I didn't review the whole CL.) https://codereview.chromium.org/2072613003/diff/610001/chrome/browser/search_engines/search_provider_install_state_impl.cc File chrome/browser/search_engines/search_provider_install_state_impl.cc (right): https://codereview.chromium.org/2072613003/diff/610001/chrome/browser/search_engines/search_provider_install_state_impl.cc#newcode43 chrome/browser/search_engines/search_provider_install_state_impl.cc:43: ...
4 years, 5 months ago (2016-07-21 15:42:38 UTC) #63
tibell
4 years, 5 months ago (2016-07-22 00:19:53 UTC) #64
Message was sent while issue was closed.
https://codereview.chromium.org/2072613003/diff/610001/chrome/browser/search_...
File chrome/browser/search_engines/search_provider_install_state_impl.cc
(right):

https://codereview.chromium.org/2072613003/diff/610001/chrome/browser/search_...
chrome/browser/search_engines/search_provider_install_state_impl.cc:43: void
InstallService2(
On 2016/07/21 15:42:38, yzshen1 wrote:
> It seems this is not used anywhere?

Good catch.

Fixed in https://codereview.chromium.org/2169243002.

Powered by Google App Engine
This is Rietveld 408576698