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/api/image_writer_private/operation_manager.h
" | 5 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 NOTREACHED(); | 270 NOTREACHED(); |
271 break; | 271 break; |
272 } | 272 } |
273 } | 273 } |
274 } | 274 } |
275 | 275 |
276 OperationManager* OperationManager::Get(content::BrowserContext* context) { | 276 OperationManager* OperationManager::Get(content::BrowserContext* context) { |
277 return BrowserContextKeyedAPIFactory<OperationManager>::Get(context); | 277 return BrowserContextKeyedAPIFactory<OperationManager>::Get(context); |
278 } | 278 } |
279 | 279 |
280 static base::LazyInstance<BrowserContextKeyedAPIFactory<OperationManager> > | 280 static base::LazyInstance<BrowserContextKeyedAPIFactory<OperationManager>>:: |
281 g_factory = LAZY_INSTANCE_INITIALIZER; | 281 DestructorAtExit g_factory = LAZY_INSTANCE_INITIALIZER; |
282 | 282 |
283 BrowserContextKeyedAPIFactory<OperationManager>* | 283 BrowserContextKeyedAPIFactory<OperationManager>* |
284 OperationManager::GetFactoryInstance() { | 284 OperationManager::GetFactoryInstance() { |
285 return g_factory.Pointer(); | 285 return g_factory.Pointer(); |
286 } | 286 } |
287 | 287 |
288 | 288 |
289 } // namespace image_writer | 289 } // namespace image_writer |
290 } // namespace extensions | 290 } // namespace extensions |
OLD | NEW |