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

Side by Side Diff: chrome/browser/fullscreen_mac.mm

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/fullscreen.h" 5 #import "chrome/browser/fullscreen.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
(...skipping 22 matching lines...) Expand all
33 if (options & NSApplicationPresentationFullScreen) 33 if (options & NSApplicationPresentationFullScreen)
34 return true; 34 return true;
35 35
36 return false; 36 return false;
37 } 37 }
38 38
39 namespace chrome { 39 namespace chrome {
40 namespace mac { 40 namespace mac {
41 41
42 bool SupportsSystemFullscreen() { 42 bool SupportsSystemFullscreen() {
43 const CommandLine* command_line = CommandLine::ForCurrentProcess(); 43 const base::CommandLine* command_line =
44 base::CommandLine::ForCurrentProcess();
44 if (command_line->HasSwitch(switches::kDisableSystemFullscreenForTesting)) 45 if (command_line->HasSwitch(switches::kDisableSystemFullscreenForTesting))
45 return false; 46 return false;
46 47
47 return base::mac::IsOSLionOrLater(); 48 return base::mac::IsOSLionOrLater();
48 } 49 }
49 50
50 } // namespace mac 51 } // namespace mac
51 } // namespace chrome 52 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/first_run/upgrade_util_win.cc ('k') | chrome/browser/google/chrome_google_url_tracker_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698