| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 void GaiaAuthExtensionLoader::Shutdown() { | 109 void GaiaAuthExtensionLoader::Shutdown() { |
| 110 if (load_count_ > 0) { | 110 if (load_count_ > 0) { |
| 111 UnloadGaiaAuthExtension(browser_context_); | 111 UnloadGaiaAuthExtension(browser_context_); |
| 112 load_count_ = 0; | 112 load_count_ = 0; |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 // static | 116 // static |
| 117 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) { | 117 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) { |
| 118 return ProfileKeyedAPIFactory<GaiaAuthExtensionLoader>::GetForProfile( | 118 return BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>::Get(context); |
| 119 context); | |
| 120 } | 119 } |
| 121 | 120 |
| 122 static base::LazyInstance<ProfileKeyedAPIFactory<GaiaAuthExtensionLoader> > | 121 static base::LazyInstance< |
| 123 g_factory = LAZY_INSTANCE_INITIALIZER; | 122 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader> > g_factory = |
| 123 LAZY_INSTANCE_INITIALIZER; |
| 124 | 124 |
| 125 // static | 125 // static |
| 126 ProfileKeyedAPIFactory<GaiaAuthExtensionLoader>* | 126 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>* |
| 127 GaiaAuthExtensionLoader::GetFactoryInstance() { | 127 GaiaAuthExtensionLoader::GetFactoryInstance() { |
| 128 return g_factory.Pointer(); | 128 return g_factory.Pointer(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace extensions | 131 } // namespace extensions |
| OLD | NEW |