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

Issue 2678083005: Remove extension-to-component migration mechanism (Closed)

Created:
3 years, 10 months ago by takumif
Modified:
3 years, 10 months ago
Reviewers:
msw, Devlin, imcheng, gab
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove extension-to-component migration mechanism Now that we've retired the old Cast extension from CWS, the migration mechanism from the old extension to Media Router is no longer necessary. So this CL removes ComponentMigrationHelper and the migration mechanism around it. ComponentActionDelegate, an interface implemented by ToolbarActionsModel, used to belong to ComponentMigrationHelper. It'll now be in its own file under c/b/ui/toolbar. ComponentMigrationHelper used to be responsible for determining whether to pin the Cast/Media Router toolbar icon, and now MediaRouterActionController will be responsible for it. BUG=660972 Review-Url: https://codereview.chromium.org/2678083005 Cr-Commit-Position: refs/heads/master@{#449651} Committed: https://chromium.googlesource.com/chromium/src/+/0cd92266b3b37f1218115a33e6fd08f693d7c421

Patch Set 1 : . #

Total comments: 10

Patch Set 2 : Address Mike's comments #

Total comments: 8

Patch Set 3 : Address Devlin's comments #

Total comments: 2

Patch Set 4 : Address Gabriel's comments #

Total comments: 8

Patch Set 5 : Address Derek's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -958 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/browser/extensions/component_migration_helper.h View 1 chunk +0 lines, -148 lines 0 comments Download
D chrome/browser/extensions/component_migration_helper.cc View 1 chunk +0 lines, -195 lines 0 comments Download
D chrome/browser/extensions/component_migration_helper_unittest.cc View 1 chunk +0 lines, -212 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 8 chunks +15 lines, -83 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/ui/toolbar/component_action_delegate.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/component_toolbar_actions_factory.h View 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc View 3 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_controller.h View 1 2 3 4 3 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_controller.cc View 1 2 3 4 5 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc View 1 2 3 4 5 chunks +10 lines, -16 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_contextual_menu.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_contextual_menu.cc View 3 chunks +5 lines, -11 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc View 2 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/ui/toolbar/mock_component_toolbar_actions_factory.h View 1 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/ui/toolbar/mock_component_toolbar_actions_factory.cc View 1 3 chunks +4 lines, -30 lines 0 comments Download
M chrome/browser/ui/toolbar/mock_media_router_action_controller.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_model.h View 5 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_model.cc View 4 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_model_unittest.cc View 7 chunks +0 lines, -133 lines 0 comments Download
M chrome/browser/ui/views/media_router/media_router_ui_browsertest.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/common/pref_names.h View 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 33 (20 generated)
takumif
Please take a look at: imcheng: *media_router*, overall rdcronin: c/b/extensions/, *toolbar_actions_model*, *component_toolbar_actions_factory* msw: c/b/ui/toolbar/ gab: ...
3 years, 10 months ago (2017-02-07 23:02:12 UTC) #9
msw
c/b/ui/toolbar lgtm with nits https://codereview.chromium.org/2678083005/diff/60001/chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc File chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc (right): https://codereview.chromium.org/2678083005/diff/60001/chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc#newcode60 chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc:60: router_.reset(new media_router::MockMediaRouter()); optional nit: base::MakeUnique ...
3 years, 10 months ago (2017-02-08 02:14:02 UTC) #10
takumif
Thanks for reviewing! https://codereview.chromium.org/2678083005/diff/60001/chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc File chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc (right): https://codereview.chromium.org/2678083005/diff/60001/chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc#newcode60 chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc:60: router_.reset(new media_router::MockMediaRouter()); On 2017/02/08 02:14:02, msw ...
3 years, 10 months ago (2017-02-08 03:35:41 UTC) #11
Devlin
Woo! Love killing old code :) A couple quick comments https://codereview.chromium.org/2678083005/diff/80001/chrome/browser/ui/toolbar/media_router_action_controller.cc File chrome/browser/ui/toolbar/media_router_action_controller.cc (right): https://codereview.chromium.org/2678083005/diff/80001/chrome/browser/ui/toolbar/media_router_action_controller.cc#newcode119 ...
3 years, 10 months ago (2017-02-08 15:20:02 UTC) #12
takumif
https://codereview.chromium.org/2678083005/diff/80001/chrome/browser/ui/toolbar/media_router_action_controller.cc File chrome/browser/ui/toolbar/media_router_action_controller.cc (right): https://codereview.chromium.org/2678083005/diff/80001/chrome/browser/ui/toolbar/media_router_action_controller.cc#newcode119 chrome/browser/ui/toolbar/media_router_action_controller.cc:119: MediaRouterActionController::GetAlwaysShowActionPref(profile_); On 2017/02/08 15:20:01, Devlin (OOO feb 8 and ...
3 years, 10 months ago (2017-02-08 17:38:15 UTC) #13
gab
https://codereview.chromium.org/2678083005/diff/80001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (left): https://codereview.chromium.org/2678083005/diff/80001/chrome/common/pref_names.cc#oldcode1313 chrome/common/pref_names.cc:1313: "toolbar_migrated_component_action_status"; On 2017/02/08 17:38:15, takumif wrote: > On 2017/02/08 ...
3 years, 10 months ago (2017-02-08 17:47:31 UTC) #14
takumif
https://codereview.chromium.org/2678083005/diff/80001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (left): https://codereview.chromium.org/2678083005/diff/80001/chrome/common/pref_names.cc#oldcode1313 chrome/common/pref_names.cc:1313: "toolbar_migrated_component_action_status"; On 2017/02/08 17:47:30, gab wrote: > On 2017/02/08 ...
3 years, 10 months ago (2017-02-08 18:12:14 UTC) #15
gab
prefs lgtm
3 years, 10 months ago (2017-02-08 19:47:00 UTC) #16
imcheng
lgtm https://codereview.chromium.org/2678083005/diff/120001/chrome/browser/ui/toolbar/component_action_delegate.h File chrome/browser/ui/toolbar/component_action_delegate.h (right): https://codereview.chromium.org/2678083005/diff/120001/chrome/browser/ui/toolbar/component_action_delegate.h#newcode10 chrome/browser/ui/toolbar/component_action_delegate.h:10: // Object that knows how to manage component ...
3 years, 10 months ago (2017-02-08 22:59:29 UTC) #17
takumif
https://codereview.chromium.org/2678083005/diff/120001/chrome/browser/ui/toolbar/component_action_delegate.h File chrome/browser/ui/toolbar/component_action_delegate.h (right): https://codereview.chromium.org/2678083005/diff/120001/chrome/browser/ui/toolbar/component_action_delegate.h#newcode10 chrome/browser/ui/toolbar/component_action_delegate.h:10: // Object that knows how to manage component actions ...
3 years, 10 months ago (2017-02-09 00:05:56 UTC) #18
Devlin
lgtm
3 years, 10 months ago (2017-02-09 23:46:59 UTC) #19
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/2678083005/140001
3 years, 10 months ago (2017-02-10 17:46:33 UTC) #30
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 17:52:31 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/0cd92266b3b37f1218115a33e6fd...

Powered by Google App Engine
This is Rietveld 408576698