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

Side by Side Diff: chrome/common/multi_process_lock_mac.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « chrome/common/multi_process_lock_linux.cc ('k') | chrome/common/multi_process_lock_unittest.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 (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 #include "chrome/common/multi_process_lock.h" 5 #include "chrome/common/multi_process_lock.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "base/macros.h"
9 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
10 11
11 #include <servers/bootstrap.h> 12 #include <servers/bootstrap.h>
12 13
13 class MultiProcessLockMac : public MultiProcessLock { 14 class MultiProcessLockMac : public MultiProcessLock {
14 public: 15 public:
15 explicit MultiProcessLockMac(const std::string& name) : name_(name) { } 16 explicit MultiProcessLockMac(const std::string& name) : name_(name) { }
16 17
17 ~MultiProcessLockMac() override { 18 ~MultiProcessLockMac() override {
18 if (port_ != NULL) { 19 if (port_ != NULL) {
(...skipping 29 matching lines...) Expand all
48 49
49 private: 50 private:
50 std::string name_; 51 std::string name_;
51 base::ScopedCFTypeRef<CFMessagePortRef> port_; 52 base::ScopedCFTypeRef<CFMessagePortRef> port_;
52 DISALLOW_COPY_AND_ASSIGN(MultiProcessLockMac); 53 DISALLOW_COPY_AND_ASSIGN(MultiProcessLockMac);
53 }; 54 };
54 55
55 MultiProcessLock* MultiProcessLock::Create(const std::string &name) { 56 MultiProcessLock* MultiProcessLock::Create(const std::string &name) {
56 return new MultiProcessLockMac(name); 57 return new MultiProcessLockMac(name);
57 } 58 }
OLDNEW
« no previous file with comments | « chrome/common/multi_process_lock_linux.cc ('k') | chrome/common/multi_process_lock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698