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

Issue 157763002: [Mac] In +[CustomFrameView load], do not perform any work if the process has a --type flag. (Closed)

Created:
6 years, 10 months ago by Robert Sesek
Modified:
6 years, 10 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] In +[CustomFrameView load], do not perform any work if the process has a --type flag. This flag indicates that it is a non-browser process and so does not need to use NSWindow. By interacting with the NSThemeFrame class, its +initialize method runs. This initializer communicates with the WindowServer. Since +load is run from dyld as a module initializer, this effectively connects to the WindowServer via static initialization. BUG=306348 R=mark@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250112

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : duh #

Total comments: 4

Patch Set 4 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M chrome/browser/ui/cocoa/custom_frame_view.mm View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Robert Sesek
6 years, 10 months ago (2014-02-07 18:05:22 UTC) #1
Mark Mentovai
https://codereview.chromium.org/157763002/diff/1/chrome/browser/ui/cocoa/custom_frame_view.mm File chrome/browser/ui/cocoa/custom_frame_view.mm (right): https://codereview.chromium.org/157763002/diff/1/chrome/browser/ui/cocoa/custom_frame_view.mm#newcode10 chrome/browser/ui/cocoa/custom_frame_view.mm:10: #import <objc/runtime.h> Why are these in a separate section ...
6 years, 10 months ago (2014-02-07 18:49:39 UTC) #2
Robert Sesek
https://codereview.chromium.org/157763002/diff/1/chrome/browser/ui/cocoa/custom_frame_view.mm File chrome/browser/ui/cocoa/custom_frame_view.mm (right): https://codereview.chromium.org/157763002/diff/1/chrome/browser/ui/cocoa/custom_frame_view.mm#newcode10 chrome/browser/ui/cocoa/custom_frame_view.mm:10: #import <objc/runtime.h> On 2014/02/07 18:49:39, Mark Mentovai wrote: > ...
6 years, 10 months ago (2014-02-07 19:05:11 UTC) #3
Mark Mentovai
https://codereview.chromium.org/157763002/diff/50001/chrome/browser/ui/cocoa/custom_frame_view.mm File chrome/browser/ui/cocoa/custom_frame_view.mm (right): https://codereview.chromium.org/157763002/diff/50001/chrome/browser/ui/cocoa/custom_frame_view.mm#newcode57 chrome/browser/ui/cocoa/custom_frame_view.mm:57: if (strcmp(arg, "--type=") >= 0) Gotta use strNcmp.
6 years, 10 months ago (2014-02-07 19:06:26 UTC) #4
Robert Sesek
https://codereview.chromium.org/157763002/diff/50001/chrome/browser/ui/cocoa/custom_frame_view.mm File chrome/browser/ui/cocoa/custom_frame_view.mm (right): https://codereview.chromium.org/157763002/diff/50001/chrome/browser/ui/cocoa/custom_frame_view.mm#newcode57 chrome/browser/ui/cocoa/custom_frame_view.mm:57: if (strcmp(arg, "--type=") >= 0) On 2014/02/07 19:06:26, Mark ...
6 years, 10 months ago (2014-02-07 19:46:36 UTC) #5
Mark Mentovai
LGTMarco https://codereview.chromium.org/157763002/diff/100001/chrome/browser/ui/cocoa/custom_frame_view.mm File chrome/browser/ui/cocoa/custom_frame_view.mm (right): https://codereview.chromium.org/157763002/diff/100001/chrome/browser/ui/cocoa/custom_frame_view.mm#newcode55 chrome/browser/ui/cocoa/custom_frame_view.mm:55: const char kType[] = "--type"; Missing = relative ...
6 years, 10 months ago (2014-02-07 19:57:59 UTC) #6
Robert Sesek
https://codereview.chromium.org/157763002/diff/100001/chrome/browser/ui/cocoa/custom_frame_view.mm File chrome/browser/ui/cocoa/custom_frame_view.mm (right): https://codereview.chromium.org/157763002/diff/100001/chrome/browser/ui/cocoa/custom_frame_view.mm#newcode55 chrome/browser/ui/cocoa/custom_frame_view.mm:55: const char kType[] = "--type"; On 2014/02/07 19:58:00, Mark ...
6 years, 10 months ago (2014-02-07 20:08:26 UTC) #7
Mark Mentovai
lgtMARCUS
6 years, 10 months ago (2014-02-07 20:09:10 UTC) #8
Robert Sesek
The CQ bit was checked by rsesek@chromium.org
6 years, 10 months ago (2014-02-07 22:53:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/157763002/150001
6 years, 10 months ago (2014-02-07 22:56:53 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-08 05:23:42 UTC) #11
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 10 months ago (2014-02-08 05:23:43 UTC) #12
Robert Sesek
6 years, 10 months ago (2014-02-10 16:41:16 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 manually as r250112 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698