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

Issue 8771028: [Mac] Remove content/ CrApplication. (Closed)

Created:
9 years ago by Scott Hess - ex-Googler
Modified:
9 years ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, joi+watch-content_chromium.org, Avi (use Gerrit), creis+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, Paweł Hajdan Jr., jam, garykac+watch_chromium.org, apatrick_chromium, dpranke-watch+content_chromium.org, brettw-cc_chromium.org, lambroslambrou+watch_chromium.org, darin-cc_chromium.org, simonmorris+watch_chromium.org, ajwong+watch_chromium.org, sadrul, sergeyu+watch_chromium.org
Visibility:
Public.

Description

[Mac] Remove content/ CrApplication. Pull the CrAppProtocol autorelease-pool handling down into MessagePumpCrApplication, which is selected at Create() if NSApp implements the right protocol. UsingCrApp() allows clients to confirm the correct setup (unfortunately, synchronizing NSApp initialization and MessagePump::Create() would be intrusive). Also push CrAppProtocol and CrAppControlProtocol implementation into BrowserCrApplication, and reparent that class from NSApplication. Reparent ServiceCrApplication on NSApplication and rename. Remove CrApplication registration from gpu, plugin, and renderer mains. Remove MockCrApp dependency from remoting sample code. BUG=102224 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113281

Patch Set 1 #

Total comments: 5

Patch Set 2 : rsesek comments. #

Total comments: 1

Patch Set 3 : NSApp initialization comment. #

Total comments: 1

Patch Set 4 : Initialize service process NSApp before message loop. #

Total comments: 2

Patch Set 5 : Remove debug logging, chrome/browser/DEPS trim. #

Total comments: 1

Patch Set 6 : Merge to trunk for commit-queue. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -157 lines) Patch
M base/message_pump_mac.h View 1 2 2 chunks +32 lines, -6 lines 0 comments Download
M base/message_pump_mac.mm View 1 2 4 chunks +43 lines, -8 lines 0 comments Download
M base/test/mock_chrome_application_mac.mm View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_application_mac.h View 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_application_mac.mm View 1 3 chunks +33 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_application_mac_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/service/chrome_service_application_mac.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/service/chrome_service_application_mac.mm View 1 4 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/service/service_main.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
D content/common/chrome_application_mac.h View 1 chunk +0 lines, -38 lines 0 comments Download
D content/common/chrome_application_mac.mm View 1 chunk +0 lines, -52 lines 0 comments Download
M content/common/sandbox_mac.mm View 1 chunk +0 lines, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M content/gpu/gpu_main.cc View 2 chunks +1 line, -7 lines 0 comments Download
M content/plugin/plugin_main_mac.mm View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_mac.mm View 2 chunks +3 lines, -4 lines 0 comments Download
M remoting/host/simple_host_process.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Scott Hess - ex-Googler
I had a more targetted incremental CL: http://codereview.chromium.org/8763017/ which concentrates on MessagePumpMac, and I thought ...
9 years ago (2011-12-02 04:01:39 UTC) #1
Robert Sesek
What a delightfully CrAppy CL. Just two nits. Also, I'm trusting you (and codesearch) that ...
9 years ago (2011-12-02 17:10:17 UTC) #2
Scott Hess - ex-Googler
OK, that wasn't so bad. This'll need OWNERS for remoting/, content/ and base/, jam@ was ...
9 years ago (2011-12-02 19:15:24 UTC) #3
Scott Hess - ex-Googler
David, I indeed had misunderstood something about the service sub-process, recent change also pulled the ...
9 years ago (2011-12-02 20:12:51 UTC) #4
Robert Sesek
lgtm http://codereview.chromium.org/8771028/diff/1025/chrome/service/chrome_service_application_mac.mm File chrome/service/chrome_service_application_mac.mm (right): http://codereview.chromium.org/8771028/diff/1025/chrome/service/chrome_service_application_mac.mm#newcode98 chrome/service/chrome_service_application_mac.mm:98: NSLog(@"var: %@", var); Stray NSLog
9 years ago (2011-12-02 20:36:42 UTC) #5
jam
content lgtm, thanks for doing this. please update chrome/browser/DEPS
9 years ago (2011-12-02 20:44:28 UTC) #6
dmac
lgtm
9 years ago (2011-12-02 20:48:00 UTC) #7
Scott Hess - ex-Googler
Looping in apatrick@ and kbr@, for content/gpu/ OWNERS stamp. Kinda wishing PRESUBMIT gave me the ...
9 years ago (2011-12-02 20:58:13 UTC) #8
Wez
http://codereview.chromium.org/8771028/diff/1/base/message_pump_mac.h File base/message_pump_mac.h (right): http://codereview.chromium.org/8771028/diff/1/base/message_pump_mac.h#newcode267 base/message_pump_mac.h:267: // CrAppProtocol, creates an instances of MessagePumpCrApplication. s/instances/instance
9 years ago (2011-12-02 21:22:10 UTC) #9
Ken Russell (switch to Gerrit)
CrApp was the best joke name in the code base! LGTM
9 years ago (2011-12-02 21:35:36 UTC) #10
Ken Russell (switch to Gerrit)
BTW, please test composited content like poster circle to ensure no regressions in the GPU ...
9 years ago (2011-12-02 21:36:25 UTC) #11
Scott Hess - ex-Googler
On 2011/12/02 21:36:25, kbr wrote: > BTW, please test composited content like poster circle to ...
9 years ago (2011-12-03 00:11:29 UTC) #12
Mark Mentovai
LGTM for CrAppy owner approval.
9 years ago (2011-12-05 19:25:58 UTC) #13
apatrick_chromium
LGTM for content/gpu
9 years ago (2011-12-05 22:00:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/8771028/3024
9 years ago (2011-12-06 18:49:04 UTC) #15
commit-bot: I haz the power
Can't apply patch for file chrome/browser/DEPS. While running patch -p1 --forward --force; patching file chrome/browser/DEPS ...
9 years ago (2011-12-06 18:49:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/8771028/13001
9 years ago (2011-12-06 18:52:10 UTC) #17
commit-bot: I haz the power
9 years ago (2011-12-06 23:32:45 UTC) #18
Change committed as 113281

Powered by Google App Engine
This is Rietveld 408576698