| 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 "base/lazy_instance.h" | 5 #include "base/lazy_instance.h" |
| 6 #include "chrome/browser/browser_process.h" | 6 #include "chrome/browser/browser_process.h" |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/extensions/api/image_writer_private/destroy_partitions_
operation.h" | 8 #include "chrome/browser/extensions/api/image_writer_private/destroy_partitions_
operation.h" |
| 9 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 9 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
| 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" | 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 OperationManager* OperationManager::Get(Profile* profile) { | 251 OperationManager* OperationManager::Get(Profile* profile) { |
| 252 return ProfileKeyedAPIFactory<OperationManager>:: | 252 return ProfileKeyedAPIFactory<OperationManager>:: |
| 253 GetForProfile(profile); | 253 GetForProfile(profile); |
| 254 } | 254 } |
| 255 | 255 |
| 256 static base::LazyInstance<ProfileKeyedAPIFactory<OperationManager> > | 256 static base::LazyInstance<ProfileKeyedAPIFactory<OperationManager> > |
| 257 g_factory = LAZY_INSTANCE_INITIALIZER; | 257 g_factory = LAZY_INSTANCE_INITIALIZER; |
| 258 | 258 |
| 259 ProfileKeyedAPIFactory<OperationManager>* | 259 ProfileKeyedAPIFactory<OperationManager>* |
| 260 OperationManager::GetFactoryInstance() { | 260 OperationManager::GetFactoryInstance() { |
| 261 return &g_factory.Get(); | 261 return g_factory.Pointer(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 | 264 |
| 265 } // namespace image_writer | 265 } // namespace image_writer |
| 266 } // namespace extensions | 266 } // namespace extensions |
| OLD | NEW |