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

Issue 2039543002: Getting rid of ChromeLauncherController::model(). (Closed)

Created:
4 years, 6 months ago by mfomitchev
Modified:
4 years, 6 months ago
Reviewers:
msw, James Cook, sky
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Getting rid of ChromeLauncherController::model(). Also updating comments/error output: BrowserLauncherItemController -> BrowserShortcutLauncherItemController. BUG=NONE Committed: https://crrev.com/258f2a662ce1832a109bd780048dd07b26907243 Cr-Commit-Position: refs/heads/master@{#397848}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressing nit. #

Patch Set 3 : Fixing unit tests. #

Patch Set 4 : Fixing git cl dependencies #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -25 lines) Patch
M ash/shelf/shelf.h View 1 2 3 chunks +3 lines, -1 line 1 comment Download
M ash/shelf/shelf.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc View 1 2 3 chunks +7 lines, -2 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 21 (8 generated)
mfomitchev
4 years, 6 months ago (2016-06-03 17:48:13 UTC) #2
msw
lgtm https://codereview.chromium.org/2039543002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/2039543002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode1704 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:1704: << "There should be always a BrowserShortcutLauncherItemController."; optional ...
4 years, 6 months ago (2016-06-03 17:55:27 UTC) #3
commit-bot: I haz the power
This CL has an open dependency (Issue 2039543002 Patch 1). Please resolve the dependency and ...
4 years, 6 months ago (2016-06-03 18:09:28 UTC) #7
mfomitchev
https://codereview.chromium.org/2039543002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc (right): https://codereview.chromium.org/2039543002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc#newcode1704 chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc:1704: << "There should be always a BrowserShortcutLauncherItemController."; On 2016/06/03 ...
4 years, 6 months ago (2016-06-03 18:09:45 UTC) #8
mfomitchev
msw: Had to change this a bit to make the tests pass. Does it still ...
4 years, 6 months ago (2016-06-03 20:36:18 UTC) #9
msw
sure, it's uglier, but still lgtm https://codereview.chromium.org/2039543002/diff/60001/chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc File chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc (right): https://codereview.chromium.org/2039543002/diff/60001/chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc#newcode88 chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc:88: if (!BrowserShortcutLauncherItemController(controller(), shelf_model_) ...
4 years, 6 months ago (2016-06-03 20:54:11 UTC) #10
mfomitchev
sky@chromium.org: Please review changes in ash/
4 years, 6 months ago (2016-06-03 20:57:07 UTC) #12
sky
LGTM
4 years, 6 months ago (2016-06-03 22:31:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039543002/60001
4 years, 6 months ago (2016-06-03 23:48:53 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-03 23:55:18 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/258f2a662ce1832a109bd780048dd07b26907243 Cr-Commit-Position: refs/heads/master@{#397848}
4 years, 6 months ago (2016-06-03 23:57:46 UTC) #18
James Cook
Drive-by, since I just hit a merge conflict on this, and I'm actively working in ...
4 years, 6 months ago (2016-06-04 04:47:58 UTC) #20
mfomitchev
4 years, 6 months ago (2016-06-06 15:46:50 UTC) #21
Message was sent while issue was closed.
On 2016/06/04 04:47:58, James Cook wrote:
> Drive-by, since I just hit a merge conflict on this, and I'm actively working
in
> the shelf code.
> 
> https://codereview.chromium.org/2039543002/diff/60001/ash/shelf/shelf.h
> File ash/shelf/shelf.h (right):
> 
>
https://codereview.chromium.org/2039543002/diff/60001/ash/shelf/shelf.h#newco...
> ash/shelf/shelf.h:141: ShelfModel* shelf_model() { return
shelf_view_->model();
> }
> I don't understand why you're exposing this here, rather than calling
> ash::Shell::shelf_model(). There is only one model for the shelf, shared among
> multiple instances of this class. Doing it this way means every user of this
> class directly depends on ShelfView.
> 
> If it has to be exposed here for some reason, maybe it could be a non-inline
> function GetShelfModel() and we could sort out later whether it should get the
> model directly from ash::Shell or inject a pointer or get it from ShelfView.

Thanks for the drive by. You are absolutely right, there is no reason to do
this. Unlike ChromeLauncherController, there's no unit tests that injects
model into the shelf.
Fixed in crrev.com/2039253002

Powered by Google App Engine
This is Rietveld 408576698