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

Issue 2394733002: [Mac Fix-It] removed base::mac::AmIForeground function. (Closed)

Created:
4 years, 2 months ago by Eugene But (OOO till 7-30)
Modified:
4 years, 2 months ago
Reviewers:
Nico
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac Fix-It] removed base::mac::AmIForeground function. Use [[NSRunningApplication currentApplication] isActive] call instead. BUG=650854 Committed: https://crrev.com/1cc274c36c784591ed4a0fcd6dab7465e033c823 Cr-Commit-Position: refs/heads/master@{#423425}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -27 lines) Patch
M base/mac/mac_util.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M base/mac/mac_util.mm View 1 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/mac/relauncher.mm View 1 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Eugene But (OOO till 7-30)
base::mac::AmIForeground() is actually used only in once place. Should I just remove base::mac::AmIForeground() and directly ...
4 years, 2 months ago (2016-10-05 02:23:15 UTC) #2
Nico
Thanks for the patch! https://codereview.chromium.org/2394733002/diff/1/base/mac/mac_util.mm File base/mac/mac_util.mm (right): https://codereview.chromium.org/2394733002/diff/1/base/mac/mac_util.mm#newcode222 base/mac/mac_util.mm:222: return [[NSApplication sharedApplication] isActive]; Is ...
4 years, 2 months ago (2016-10-05 14:19:39 UTC) #3
Eugene But (OOO till 7-30)
PTAL https://codereview.chromium.org/2394733002/diff/1/base/mac/mac_util.mm File base/mac/mac_util.mm (right): https://codereview.chromium.org/2394733002/diff/1/base/mac/mac_util.mm#newcode222 base/mac/mac_util.mm:222: return [[NSApplication sharedApplication] isActive]; On 2016/10/05 14:19:39, Nico ...
4 years, 2 months ago (2016-10-06 00:32:00 UTC) #7
Nico
Lgtm Since we now know that NSApp is already initialized, [NSApp isActive] would work too ...
4 years, 2 months ago (2016-10-06 01:44:32 UTC) #10
Eugene But (OOO till 7-30)
On 2016/10/06 01:44:32, Nico wrote: > Lgtm > > Since we now know that NSApp ...
4 years, 2 months ago (2016-10-06 03:57:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2394733002/20001
4 years, 2 months ago (2016-10-06 03:57:55 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-06 04:02:52 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/1cc274c36c784591ed4a0fcd6dab7465e033c823 Cr-Commit-Position: refs/heads/master@{#423425}
4 years, 2 months ago (2016-10-06 04:04:15 UTC) #17
Nico
Either [NSApp active] or [[NSApplication sharedInstance] active]. NSApp is a global of type NSApplication*, not ...
4 years, 2 months ago (2016-10-06 04:17:07 UTC) #18
Eugene But (OOO till 7-30)
4 years, 2 months ago (2016-10-06 04:28:21 UTC) #19
Message was sent while issue was closed.
On 2016/10/06 04:17:07, Nico wrote:
> Either [NSApp active] or [[NSApplication sharedInstance] active]. NSApp is
> a global of type NSApplication*, not a class.
> 
> On Oct 5, 2016 11:57 PM, mailto:"commit-bot@chromium.org via
> codereview.chromium.org" <mailto:reply@chromiumcodereview-hr.appspotmail.com>
> wrote:
> 
> > CQ is trying da patch. Follow status at
> >
> > https://chromium-cq-status.appspot.com/v2/patch-status/
> > codereview.chromium.org/2394733002/20001
> >
> >
> > https://codereview.chromium.org/2394733002/
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Chromium-reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.
Oh, good to know. Sorry this has landed already :(

Powered by Google App Engine
This is Rietveld 408576698