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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 break; | 232 break; |
233 } | 233 } |
234 default: { | 234 default: { |
235 NOTREACHED(); | 235 NOTREACHED(); |
236 break; | 236 break; |
237 } | 237 } |
238 } | 238 } |
239 } | 239 } |
240 | 240 |
241 OperationManager* OperationManager::Get(content::BrowserContext* context) { | 241 OperationManager* OperationManager::Get(content::BrowserContext* context) { |
242 return ProfileKeyedAPIFactory<OperationManager>::GetForProfile(context); | 242 return BrowserContextKeyedAPIFactory<OperationManager>::Get(context); |
243 } | 243 } |
244 | 244 |
245 static base::LazyInstance<ProfileKeyedAPIFactory<OperationManager> > | 245 static base::LazyInstance<BrowserContextKeyedAPIFactory<OperationManager> > |
246 g_factory = LAZY_INSTANCE_INITIALIZER; | 246 g_factory = LAZY_INSTANCE_INITIALIZER; |
247 | 247 |
248 ProfileKeyedAPIFactory<OperationManager>* | 248 BrowserContextKeyedAPIFactory<OperationManager>* |
249 OperationManager::GetFactoryInstance() { | 249 OperationManager::GetFactoryInstance() { |
250 return g_factory.Pointer(); | 250 return g_factory.Pointer(); |
251 } | 251 } |
252 | 252 |
253 | 253 |
254 } // namespace image_writer | 254 } // namespace image_writer |
255 } // namespace extensions | 255 } // namespace extensions |
OLD | NEW |