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

Issue 25105002: Deletes keyboard container before recreating the controller. (Closed)

Created:
7 years, 2 months ago by rsadam
Modified:
7 years, 2 months ago
Reviewers:
James Cook, sadrul, bshe
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Updates RootWindowController to delete the keyboard container before recreating the keyboard controller since the controller creates a new window in GetWindowContainer(). BUG=299787 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226324

Patch Set 1 #

Total comments: 1

Patch Set 2 : Deletes old container before creating a new keyboard controller. #

Total comments: 2

Patch Set 3 : Updated comment to be more descriptive. #

Patch Set 4 : Added unit test for bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M ash/root_window_controller.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rsadam
7 years, 2 months ago (2013-09-27 18:14:29 UTC) #1
bshe
On 2013/09/27 18:14:29, rsadam wrote: lgtm
7 years, 2 months ago (2013-09-27 18:25:04 UTC) #2
sadrul
https://codereview.chromium.org/25105002/diff/1/ui/keyboard/keyboard_controller.cc File ui/keyboard/keyboard_controller.cc (right): https://codereview.chromium.org/25105002/diff/1/ui/keyboard/keyboard_controller.cc#newcode137 ui/keyboard/keyboard_controller.cc:137: container_->SetLayoutManager(NULL); The container window takes ownership of the layout-manager ...
7 years, 2 months ago (2013-09-27 20:25:16 UTC) #3
rsadam
Re-implemented the fix as you suggested!
7 years, 2 months ago (2013-10-01 14:23:49 UTC) #4
sadrul
LGTM Please add an OWNER reviewer in the next iteration. https://codereview.chromium.org/25105002/diff/7001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25105002/diff/7001/ash/root_window_controller.cc#newcode534 ...
7 years, 2 months ago (2013-10-01 14:28:28 UTC) #5
bshe
On 2013/10/01 14:28:28, sadrul wrote: > LGTM > > Please add an OWNER reviewer in ...
7 years, 2 months ago (2013-10-01 14:29:49 UTC) #6
rsadam
Fixed the comment as suggested. +jamescook for OWNERS https://codereview.chromium.org/25105002/diff/7001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/25105002/diff/7001/ash/root_window_controller.cc#newcode534 ash/root_window_controller.cc:534: // ...
7 years, 2 months ago (2013-10-01 14:44:00 UTC) #7
James Cook
Can we have a test for this function? Then the memory bots will run it ...
7 years, 2 months ago (2013-10-01 15:45:29 UTC) #8
rsadam
Added a unit test to root_window_controller_unittest to test this.
7 years, 2 months ago (2013-10-01 18:09:57 UTC) #9
James Cook
LGTM
7 years, 2 months ago (2013-10-01 20:15:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsadam@chromium.org/25105002/18001
7 years, 2 months ago (2013-10-01 20:20:17 UTC) #11
commit-bot: I haz the power
7 years, 2 months ago (2013-10-01 22:49:02 UTC) #12
Message was sent while issue was closed.
Change committed as 226324

Powered by Google App Engine
This is Rietveld 408576698