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

Side by Side Diff: chrome/common/mac/launchd.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 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 | « chrome/browser/web_data_service_factory.cc ('k') | chrome/common/mac/launchd.mm » ('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 #ifndef CHROME_COMMON_MAC_LAUNCHD_H_ 5 #ifndef CHROME_COMMON_MAC_LAUNCHD_H_
6 #define CHROME_COMMON_MAC_LAUNCHD_H_ 6 #define CHROME_COMMON_MAC_LAUNCHD_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Launchd::SetInstance(NULL); 81 Launchd::SetInstance(NULL);
82 } 82 }
83 }; 83 };
84 84
85 protected: 85 protected:
86 Launchd() { } 86 Launchd() { }
87 87
88 private: 88 private:
89 // TODO(dmaclach): remove this once http://crbug.com/76925 is fixed. 89 // TODO(dmaclach): remove this once http://crbug.com/76925 is fixed.
90 // Scaffolding for doing unittests with our singleton. 90 // Scaffolding for doing unittests with our singleton.
91 friend struct DefaultSingletonTraits<Launchd>; 91 friend struct base::DefaultSingletonTraits<Launchd>;
92 static Launchd* g_instance_; 92 static Launchd* g_instance_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(Launchd); 94 DISALLOW_COPY_AND_ASSIGN(Launchd);
95 }; 95 };
96 96
97 #endif // CHROME_COMMON_MAC_LAUNCHD_H_ 97 #endif // CHROME_COMMON_MAC_LAUNCHD_H_
OLDNEW
« no previous file with comments | « chrome/browser/web_data_service_factory.cc ('k') | chrome/common/mac/launchd.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698