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

Issue 1041313003: MacViews: Remove BrowserWindowController dependency from AppController (Closed)

Created:
5 years, 8 months ago by Andre
Modified:
5 years, 8 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, mac-views-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@titlebar
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Remove BrowserWindowController dependency from AppController For mac_views_browser, we want to use AppControllerMac but we don't want to include BrowserWindowController and friends, to avoid duplicate symbols and ODR violations. This patch removes all BrowserWindowController dependencies from AppController and ConfirmQuitPanelController (which is used by AppController). BUG=425229 Committed: https://crrev.com/55fd251dd261f24caa80355f03f861b5157518b9 Cr-Commit-Position: refs/heads/master@{#323326}

Patch Set 1 #

Patch Set 2 : Also remove from ConfirmQuitPanelController #

Total comments: 4

Patch Set 3 : Fix for rsesek #

Total comments: 1

Patch Set 4 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -229 lines) Patch
M chrome/browser/app_controller_mac.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 10 chunks +42 lines, -23 lines 0 comments Download
M chrome/browser/app_controller_mac_unittest.mm View 1 2 3 3 chunks +164 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 4 chunks +4 lines, -31 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 3 3 chunks +0 lines, -153 lines 0 comments Download
M chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm View 1 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Andre
5 years, 8 months ago (2015-03-30 22:36:21 UTC) #2
Andre
Robert, PTAL.
5 years, 8 months ago (2015-03-30 22:40:41 UTC) #3
Andre
Also removed dependency from ConfirmQuitPanelController in patchset 2.
5 years, 8 months ago (2015-03-31 17:31:53 UTC) #4
Robert Sesek
https://codereview.chromium.org/1041313003/diff/20001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (left): https://codereview.chromium.org/1041313003/diff/20001/chrome/browser/app_controller_mac.mm#oldcode955 chrome/browser/app_controller_mac.mm:955: [BrowserWindowController updateSigninItem:item Could you move this method to AppController ...
5 years, 8 months ago (2015-03-31 22:46:35 UTC) #5
Andre
https://codereview.chromium.org/1041313003/diff/20001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (left): https://codereview.chromium.org/1041313003/diff/20001/chrome/browser/app_controller_mac.mm#oldcode955 chrome/browser/app_controller_mac.mm:955: [BrowserWindowController updateSigninItem:item On 2015/03/31 22:46:35, Robert Sesek wrote: > ...
5 years, 8 months ago (2015-03-31 23:09:44 UTC) #6
Robert Sesek
LGTM https://codereview.chromium.org/1041313003/diff/40001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/1041313003/diff/40001/chrome/browser/app_controller_mac.mm#newcode310 chrome/browser/app_controller_mac.mm:310: NSMenuItem* signinMenuItem = static_cast<NSMenuItem*>(signinItem); nit: can use base::mac::ObjCCastStrict<>.
5 years, 8 months ago (2015-04-01 15:17:45 UTC) #7
Robert Sesek
It looks like there's a unittest for the updateSigninItem: method that should be moved as ...
5 years, 8 months ago (2015-04-01 15:18:21 UTC) #8
Andre
On 2015/04/01 15:18:21, Robert Sesek wrote: > It looks like there's a unittest for the ...
5 years, 8 months ago (2015-04-01 20:15:13 UTC) #9
Robert Sesek
LGTM
5 years, 8 months ago (2015-04-01 20:39:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1041313003/60001
5 years, 8 months ago (2015-04-01 21:01:53 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-01 21:07:15 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-01 21:08:27 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/55fd251dd261f24caa80355f03f861b5157518b9
Cr-Commit-Position: refs/heads/master@{#323326}

Powered by Google App Engine
This is Rietveld 408576698