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

Side by Side Diff: sandbox/mac/os_compatibility.cc

Issue 2271653006: base::mac::IsOSSierra() -> base::mac::IsOS10_12(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Nits Created 4 years, 3 months 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
« no previous file with comments | « sandbox/mac/launchd_interception_server.cc ('k') | sandbox/mac/pre_exec_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "sandbox/mac/os_compatibility.h" 5 #include "sandbox/mac/os_compatibility.h"
6 6
7 #include <servers/bootstrap.h> 7 #include <servers/bootstrap.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 return xpc_dictionary_get_bool(message.xpc, "set") == false && 174 return xpc_dictionary_get_bool(message.xpc, "set") == false &&
175 xpc_dictionary_get_uint64(message.xpc, "ingsk") == 0 && 175 xpc_dictionary_get_uint64(message.xpc, "ingsk") == 0 &&
176 xpc_dictionary_get_int64(message.xpc, "in") == 0; 176 xpc_dictionary_get_int64(message.xpc, "in") == 0;
177 } 177 }
178 }; 178 };
179 179
180 } // namespace 180 } // namespace
181 181
182 // static 182 // static
183 std::unique_ptr<OSCompatibility> OSCompatibility::CreateForPlatform() { 183 std::unique_ptr<OSCompatibility> OSCompatibility::CreateForPlatform() {
184 if (base::mac::IsOSMavericks()) 184 if (base::mac::IsOS10_9())
185 return base::WrapUnique(new OSCompatibility_10_7()); 185 return base::WrapUnique(new OSCompatibility_10_7());
186 else 186 else
187 return base::WrapUnique(new OSCompatibility_10_10()); 187 return base::WrapUnique(new OSCompatibility_10_10());
188 } 188 }
189 189
190 OSCompatibility::~OSCompatibility() {} 190 OSCompatibility::~OSCompatibility() {}
191 191
192 } // namespace sandbox 192 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/mac/launchd_interception_server.cc ('k') | sandbox/mac/pre_exec_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698