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

Issue 2470283002: Convert profile import IPCs to Mojo (Closed)

Created:
4 years, 1 month ago by tibell
Modified:
4 years ago
Reviewers:
Sam McNally, gab, yzshen1, sky, dcheng
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert profile import IPCs to Mojo BUG= Committed: https://crrev.com/1d83f16c4e8a49c614479bbd5e74f16aad7c8232 Cr-Commit-Position: refs/heads/master@{#435518}

Patch Set 1 #

Patch Set 2 : Remove last reference to profile_import_process_messages.h #

Patch Set 3 : Add out-of-line ImporterIE7PasswordInfo copy constructor #

Patch Set 4 : Use enum instead of int in mojom where possible #

Total comments: 27

Patch Set 5 : Address review comments #

Total comments: 18

Patch Set 6 : Address review comments #

Total comments: 19

Patch Set 7 : Address dcheng's review comments #

Total comments: 2

Patch Set 8 : Merge #

Patch Set 9 : Use correct int types #

Total comments: 6

Patch Set 10 : Clarify ownership of observer InterfacePtr #

Patch Set 11 : Merge #

Patch Set 12 : Fix incorrect merge #

Total comments: 11

Patch Set 13 : Use a ThreadSafeInterfacePtr instead #

Patch Set 14 : Address final review comments #

Patch Set 15 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -444 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_utility_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/importer/external_process_importer_client.h View 1 2 3 4 5 6 7 8 5 chunks +38 lines, -29 lines 0 comments Download
M chrome/browser/importer/external_process_importer_client.cc View 1 2 3 4 5 6 7 8 12 chunks +70 lines, -108 lines 0 comments Download
M chrome/browser/importer/in_process_importer_bridge.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +13 lines, -52 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/all_messages.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
A chrome/common/importer/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/common/importer/OWNERS View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/importer/importer_data_types.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/importer/importer_data_types.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
A chrome/common/importer/profile_import.mojom View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/common/importer/profile_import.typemap View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
D chrome/common/importer/profile_import_process_messages.h View 1 chunk +0 lines, -105 lines 0 comments Download
D chrome/common/importer/profile_import_process_messages.cc View 1 chunk +0 lines, -39 lines 0 comments Download
A chrome/common/importer/profile_import_process_param_traits.h View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/common/importer/profile_import_process_param_traits.cc View 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/common/importer/profile_import_process_param_traits_macros.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
A chrome/common/importer/typemaps.gni View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/utility/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -4 lines 0 comments Download
M chrome/utility/importer/external_process_importer_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +8 lines, -12 lines 0 comments Download
M chrome/utility/importer/external_process_importer_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +22 lines, -44 lines 0 comments Download
M chrome/utility/profile_import_handler.h View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/utility/profile_import_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +16 lines, -30 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 119 (71 generated)
tibell
Remove last reference to profile_import_process_messages.h
4 years, 1 month ago (2016-11-04 00:40:09 UTC) #5
tibell
Add out-of-line ImporterIE7PasswordInfo copy constructor
4 years, 1 month ago (2016-11-04 02:50:02 UTC) #10
tibell
Use enum instead of int in mojom where possible
4 years, 1 month ago (2016-11-04 03:43:20 UTC) #13
tibell
Hi, I'm working on the Mojo team and we're currently working on converting Chrome to ...
4 years, 1 month ago (2016-11-04 04:00:43 UTC) #17
gab
On 2016/11/04 04:00:43, tibell wrote: > Hi, > > I'm working on the Mojo team ...
4 years, 1 month ago (2016-11-04 14:38:35 UTC) #20
tibell
On 2016/11/04 14:38:35, gab wrote: > On 2016/11/04 04:00:43, tibell wrote: > > Hi, > ...
4 years, 1 month ago (2016-11-06 22:24:49 UTC) #21
Sam McNally
https://codereview.chromium.org/2470283002/diff/50001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/50001/chrome/browser/importer/external_process_importer_client.cc#newcode102 chrome/browser/importer/external_process_importer_client.cc:102: bridge_->NotifyItemStarted(static_cast<importer::ImportItem>(item_data)); Remove the cast. https://codereview.chromium.org/2470283002/diff/50001/chrome/browser/importer/external_process_importer_client.cc#newcode286 chrome/browser/importer/external_process_importer_client.cc:286: void ExternalProcessImporterClient::SetupMojoOnUIThread( Have ...
4 years, 1 month ago (2016-11-07 06:31:08 UTC) #22
gab
lg https://codereview.chromium.org/2470283002/diff/50001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/50001/chrome/browser/importer/external_process_importer_client.cc#newcode77 chrome/browser/importer/external_process_importer_client.cc:77: return false; Why is this method still needed? ...
4 years, 1 month ago (2016-11-07 20:07:32 UTC) #23
tibell
Address review comments
4 years, 1 month ago (2016-11-07 23:33:00 UTC) #24
tibell
Thanks for reviewing! PTAL. https://codereview.chromium.org/2470283002/diff/50001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/50001/chrome/browser/importer/external_process_importer_client.cc#newcode77 chrome/browser/importer/external_process_importer_client.cc:77: return false; On 2016/11/07 20:07:31, ...
4 years, 1 month ago (2016-11-07 23:34:24 UTC) #25
tibell
https://codereview.chromium.org/2470283002/diff/50001/chrome/utility/profile_import_handler.cc File chrome/utility/profile_import_handler.cc (right): https://codereview.chromium.org/2470283002/diff/50001/chrome/utility/profile_import_handler.cc#newcode43 chrome/utility/profile_import_handler.cc:43: observer_->OnImportFinished(false, "Importer could not be created."); On 2016/11/07 06:31:08, ...
4 years, 1 month ago (2016-11-07 23:36:17 UTC) #26
tibell
4 years, 1 month ago (2016-11-07 23:36:20 UTC) #27
gab
lgtm % comments PS: I don't really know mojo syntax so I'm mostly assuming this ...
4 years, 1 month ago (2016-11-08 13:34:25 UTC) #32
Sam McNally
lgtm https://codereview.chromium.org/2470283002/diff/70001/chrome/utility/importer/external_process_importer_bridge.h File chrome/utility/importer/external_process_importer_bridge.h (right): https://codereview.chromium.org/2470283002/diff/70001/chrome/utility/importer/external_process_importer_bridge.h#newcode40 chrome/utility/importer/external_process_importer_bridge.h:40: // TODO(tibell): Now when profile import is a ...
4 years, 1 month ago (2016-11-09 22:31:27 UTC) #33
tibell
Address review comments
4 years, 1 month ago (2016-11-09 23:08:05 UTC) #34
tibell
Thanks for reviewing! https://codereview.chromium.org/2470283002/diff/70001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/70001/chrome/browser/importer/external_process_importer_client.cc#newcode55 chrome/browser/importer/external_process_importer_client.cc:55: thread_id, base::Passed(&request))); On 2016/11/08 13:34:24, gab ...
4 years, 1 month ago (2016-11-09 23:08:42 UTC) #35
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/2470283002/90001
4 years, 1 month ago (2016-11-09 23:09:26 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/300862)
4 years, 1 month ago (2016-11-09 23:20:41 UTC) #40
tibell
+sky for: chrome/utility/BUILD.gn chrome/utility/chrome_content_utility_client.cc chrome/utility/profile_import_handler.h chrome/utility/profile_import_handler.cc mojo/public/tools/bindings/chromium_bindings_configuration.gni +dcheng for: chrome/browser/chrome_content_utility_manifest_overlay.json chrome/common/all_messages.h chrome/common/importer/profile_import_process_messages.h
4 years, 1 month ago (2016-11-09 23:28:03 UTC) #42
tibell
On 2016/11/09 23:28:03, tibell wrote: > +sky for: > chrome/utility/BUILD.gn > chrome/utility/chrome_content_utility_client.cc > chrome/utility/profile_import_handler.h > ...
4 years, 1 month ago (2016-11-09 23:30:12 UTC) #43
dcheng
https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc#newcode55 chrome/browser/importer/external_process_importer_client.cc:55: thread_id, base::Passed(std::move(request)))); Nit: just write base::Passed(&request) https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc#newcode92 chrome/browser/importer/external_process_importer_client.cc:92: if ...
4 years, 1 month ago (2016-11-11 08:46:50 UTC) #48
tibell
PTAL https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc#newcode55 chrome/browser/importer/external_process_importer_client.cc:55: thread_id, base::Passed(std::move(request)))); On 2016/11/11 08:46:50, dcheng wrote: > ...
4 years, 1 month ago (2016-11-14 05:35:32 UTC) #49
tibell
Address dcheng's review comments
4 years, 1 month ago (2016-11-14 05:36:11 UTC) #50
tibell
Merge
4 years, 1 month ago (2016-11-14 06:10:48 UTC) #55
gab
Is there an appropriate BUG=# for this? (still lgtm) https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc#newcode55 chrome/browser/importer/external_process_importer_client.cc:55: ...
4 years, 1 month ago (2016-11-14 15:36:42 UTC) #60
dcheng
lgtm as for the base::Passed(...) thing, I'll start a cxx thread about this. I have ...
4 years, 1 month ago (2016-11-14 20:11:14 UTC) #61
tibell
Use correct int types
4 years, 1 month ago (2016-11-14 22:48:13 UTC) #62
tibell
Thanks For reviewing! https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc File chrome/browser/importer/external_process_importer_client.cc (right): https://codereview.chromium.org/2470283002/diff/90001/chrome/browser/importer/external_process_importer_client.cc#newcode55 chrome/browser/importer/external_process_importer_client.cc:55: thread_id, base::Passed(std::move(request)))); On 2016/11/14 20:11:13, dcheng ...
4 years, 1 month ago (2016-11-14 22:50:02 UTC) #65
tibell
sky, I need your approval as well. Thanks!
4 years, 1 month ago (2016-11-14 22:51:06 UTC) #66
sky
https://codereview.chromium.org/2470283002/diff/150001/chrome/utility/profile_import_handler.cc File chrome/utility/profile_import_handler.cc (right): https://codereview.chromium.org/2470283002/diff/150001/chrome/utility/profile_import_handler.cc#newcode36 chrome/utility/profile_import_handler.cc:36: observer_ = std::move(observer); DCHECK(!observer_)? https://codereview.chromium.org/2470283002/diff/150001/chrome/utility/profile_import_handler.cc#newcode38 chrome/utility/profile_import_handler.cc:38: bridge_ = new ...
4 years, 1 month ago (2016-11-14 23:12:18 UTC) #67
tibell
Clarify ownership of observer InterfacePtr
4 years ago (2016-11-29 04:13:42 UTC) #70
tibell
Merge
4 years ago (2016-11-29 04:28:46 UTC) #75
tibell
On 2016/11/29 04:28:46, tibell wrote: > Merge PTAL
4 years ago (2016-11-29 05:06:13 UTC) #78
tibell
PTAL https://codereview.chromium.org/2470283002/diff/150001/chrome/utility/profile_import_handler.cc File chrome/utility/profile_import_handler.cc (right): https://codereview.chromium.org/2470283002/diff/150001/chrome/utility/profile_import_handler.cc#newcode36 chrome/utility/profile_import_handler.cc:36: observer_ = std::move(observer); On 2016/11/14 23:12:18, sky wrote: ...
4 years ago (2016-11-29 05:06:28 UTC) #79
tibell
Fix incorrect merge
4 years ago (2016-11-29 23:44:03 UTC) #82
sky
Yuzhu: I added you for question about Bind. See chrome/utility/profile_import_handler.cc where is supplies a different ...
4 years ago (2016-11-29 23:56:28 UTC) #87
tibell
Use a ThreadSafeInterfacePtr instead
4 years ago (2016-11-30 03:29:41 UTC) #92
tibell
PTAL https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile_import_handler.cc File chrome/utility/profile_import_handler.cc (right): https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile_import_handler.cc#newcode10 chrome/utility/profile_import_handler.cc:10: #include "base/single_thread_task_runner.h" On 2016/11/29 23:56:28, sky wrote: > ...
4 years ago (2016-11-30 03:36:47 UTC) #95
sky
LGTM with the following addressed. https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile_import_handler.cc File chrome/utility/profile_import_handler.cc (right): https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile_import_handler.cc#newcode20 chrome/utility/profile_import_handler.cc:20: // static On 2016/11/30 ...
4 years ago (2016-11-30 16:19:07 UTC) #102
tibell
https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile_import_handler.cc File chrome/utility/profile_import_handler.cc (right): https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile_import_handler.cc#newcode20 chrome/utility/profile_import_handler.cc:20: // static On 2016/11/30 16:19:07, sky wrote: > On ...
4 years ago (2016-11-30 23:56:26 UTC) #103
tibell
Address final review comments
4 years ago (2016-11-30 23:56:30 UTC) #104
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/2470283002/250001
4 years ago (2016-11-30 23:57:10 UTC) #107
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/blimp_linux_dbg/builds/41542) ios-device on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-11-30 23:59:57 UTC) #109
tibell
Merge
4 years ago (2016-12-01 00:24:04 UTC) #110
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/2470283002/270001
4 years ago (2016-12-01 00:25:21 UTC) #113
commit-bot: I haz the power
Committed patchset #15 (id:270001)
4 years ago (2016-12-01 01:30:40 UTC) #116
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/1d83f16c4e8a49c614479bbd5e74f16aad7c8232 Cr-Commit-Position: refs/heads/master@{#435518}
4 years ago (2016-12-01 01:32:54 UTC) #118
yzshen1
4 years ago (2016-12-01 18:15:48 UTC) #119
Message was sent while issue was closed.
https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile...
File chrome/utility/profile_import_handler.cc (right):

https://codereview.chromium.org/2470283002/diff/210001/chrome/utility/profile...
chrome/utility/profile_import_handler.cc:56:
observer.Bind(observer.PassInterface(), import_thread_->task_runner());
On 2016/11/29 23:56:28, sky wrote:
> The description of Bind indicates the runner "must belong to the same thread".
> That doesn't seem to be the case here. I'm not familiar with InterfacePtr to
> know if this is problematic. +yzshen

Sorry for late reply. Just realized that I missed this.

Correct. The task runner must be on the same thread as where Bind is called. It
is used for task scheduling on the same thread.

Powered by Google App Engine
This is Rietveld 408576698