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

Issue 1654223002: Views - init less stuff in tabless browsers. (Closed)

Created:
4 years, 10 months ago by Evan Stade
Modified:
4 years, 10 months ago
Reviewers:
Devlin, Peter Kasting
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Views - init less stuff in tabless browsers. There's no need to create views that are hidden, register listeners relevant to those views, etc. in popup windows. The one part of BrowserActionsContainer that we do want in popup windows is the ExtensionKeybindingRegistryViews instance. Move this to BrowserView. BUG=560345 Committed: https://crrev.com/845adff50786ff3c7515d51d04370825ad9e3a8b Cr-Commit-Position: refs/heads/master@{#373344}

Patch Set 1 #

Total comments: 5

Patch Set 2 : move extension keybinding registry to BrowserView #

Patch Set 3 : self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -108 lines) Patch
M chrome/browser/ui/views/frame/browser_view.h View 1 5 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 6 chunks +35 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 1 2 6 chunks +6 lines, -26 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 chunks +0 lines, -28 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 6 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 9 chunks +24 lines, -40 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Evan Stade
4 years, 10 months ago (2016-02-01 20:30:24 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode178 chrome/browser/ui/views/toolbar/toolbar_view.cc:178: GetWidget()->AddObserver(this); Don't we still need to do this? ...
4 years, 10 months ago (2016-02-03 00:02:08 UTC) #3
Evan Stade
https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode178 chrome/browser/ui/views/toolbar/toolbar_view.cc:178: GetWidget()->AddObserver(this); On 2016/02/03 00:02:08, Peter Kasting wrote: > Don't ...
4 years, 10 months ago (2016-02-03 00:04:36 UTC) #5
Devlin
https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode178 chrome/browser/ui/views/toolbar/toolbar_view.cc:178: GetWidget()->AddObserver(this); On 2016/02/03 00:04:36, Evan Stade wrote: > On ...
4 years, 10 months ago (2016-02-03 01:02:41 UTC) #6
Evan Stade
https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode178 chrome/browser/ui/views/toolbar/toolbar_view.cc:178: GetWidget()->AddObserver(this); On 2016/02/03 01:02:41, Devlin wrote: > On 2016/02/03 ...
4 years, 10 months ago (2016-02-03 01:21:44 UTC) #7
Evan Stade
On 2016/02/03 01:21:44, Evan Stade wrote: > https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc > File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): > > https://codereview.chromium.org/1654223002/diff/1/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode178 ...
4 years, 10 months ago (2016-02-03 02:10:41 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1654223002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1654223002/40001
4 years, 10 months ago (2016-02-03 02:13:01 UTC) #10
Peter Kasting
LGTM
4 years, 10 months ago (2016-02-03 02:41:31 UTC) #11
Devlin
new patch set lgtm. Might be worth updating the CL description to mention the move ...
4 years, 10 months ago (2016-02-03 02:50:43 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-03 02:52:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1654223002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1654223002/40001
4 years, 10 months ago (2016-02-03 21:24:21 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-03 21:31:23 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/845adff50786ff3c7515d51d04370825ad9e3a8b Cr-Commit-Position: refs/heads/master@{#373344}
4 years, 10 months ago (2016-02-03 21:32:12 UTC) #21
Evan Stade
4 years, 10 months ago (2016-02-04 19:35:07 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1670663002/ by estade@chromium.org.

The reason for reverting is: this is causing a lot of crashes on canary, revert
for now and reland later with a fix.

Powered by Google App Engine
This is Rietveld 408576698