OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/extensions/signin/gaia_auth_extension_loader.h" | 5 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 load_count_ = 0; | 101 load_count_ = 0; |
102 } | 102 } |
103 } | 103 } |
104 | 104 |
105 // static | 105 // static |
106 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) { | 106 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) { |
107 return BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>::Get(context); | 107 return BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>::Get(context); |
108 } | 108 } |
109 | 109 |
110 static base::LazyInstance< | 110 static base::LazyInstance< |
111 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader> > g_factory = | 111 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>>::DestructorAtExit |
112 LAZY_INSTANCE_INITIALIZER; | 112 g_factory = LAZY_INSTANCE_INITIALIZER; |
113 | 113 |
114 // static | 114 // static |
115 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>* | 115 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>* |
116 GaiaAuthExtensionLoader::GetFactoryInstance() { | 116 GaiaAuthExtensionLoader::GetFactoryInstance() { |
117 return g_factory.Pointer(); | 117 return g_factory.Pointer(); |
118 } | 118 } |
119 | 119 |
120 } // namespace extensions | 120 } // namespace extensions |
OLD | NEW |