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

Issue 2538263005: Simplify ArcServiceManager by stop deriving it from ArcIntentHelperObserver (Closed)

Created:
4 years ago by Yusuke Sato
Modified:
4 years ago
Reviewers:
hidehiko
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify ArcServiceManager by stop deriving it from ArcIntentHelperObserver It is slightly weird for ArcServiceManager to handle (only) one of the ArcService instances it has in a special way with inheritance, and this CL fixes that. ArcServiceManager looks more neutral now and no longer has to #include arc_intent_helper_observer.h on the header side. This removes all virtual member functions from ArcServiceManager too. Instead, do the same thing with a pair of member variable and its getter function, which is more consistent with the existing ArcServiceManager code. All the implementation details go to the .cc side. This is a follow-up CL for https://codereview.chromium.org/2487623002/. BUG=672840 TEST=try Committed: https://crrev.com/7daca36ac601b5c720b71c1bd894d30d8b565393 Cr-Commit-Position: refs/heads/master@{#438718}

Patch Set 1 #

Patch Set 2 : review #

Total comments: 5

Patch Set 3 : rebase, no code change #

Patch Set 4 : Add back DCHECK #

Total comments: 2

Patch Set 5 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -17 lines) Patch
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M components/arc/arc_service_manager.h View 4 chunks +13 lines, -6 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 3 chunks +26 lines, -6 lines 0 comments Download
M components/arc/intent_helper/arc_intent_helper_observer.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (26 generated)
hidehiko
pre-drive-by comments. https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.cc#newcode46 components/arc/arc_service_manager.cc:46: for (auto& observer : manager_->observer_list_) In C++, ...
4 years ago (2016-12-14 09:06:08 UTC) #12
hidehiko
https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.cc#newcode46 components/arc/arc_service_manager.cc:46: for (auto& observer : manager_->observer_list_) On 2016/12/14 09:06:08, hidehiko ...
4 years ago (2016-12-14 09:11:01 UTC) #13
Yusuke Sato
Thanks for the review. PTAL. https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.h#newcode85 components/arc/arc_service_manager.h:85: class IntentHelperObserverImpl; // implemented ...
4 years ago (2016-12-15 00:52:33 UTC) #19
hidehiko
LGTM! https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/2538263005/diff/20001/components/arc/arc_service_manager.h#newcode85 components/arc/arc_service_manager.h:85: class IntentHelperObserverImpl; // implemented in arc_service_manager.cc. On 2016/12/15 ...
4 years ago (2016-12-15 00:58:49 UTC) #22
Yusuke Sato
https://codereview.chromium.org/2538263005/diff/60001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2538263005/diff/60001/components/arc/arc_service_manager.cc#newcode9 components/arc/arc_service_manager.cc:9: #include "base/memory/ptr_util.h" On 2016/12/15 00:58:49, hidehiko wrote: > As ...
4 years ago (2016-12-15 01:06:39 UTC) #24
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/2538263005/80001
4 years ago (2016-12-15 01:10:53 UTC) #27
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/350371) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years ago (2016-12-15 01:18:47 UTC) #29
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/2538263005/80001
4 years ago (2016-12-15 02:43:05 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-15 02:52:43 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-15 02:54:48 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7daca36ac601b5c720b71c1bd894d30d8b565393
Cr-Commit-Position: refs/heads/master@{#438718}

Powered by Google App Engine
This is Rietveld 408576698