Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: chrome/browser/extensions/api/image_writer_private/operation_manager.cc

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/image_writer_private/operation_manager.h ('k') | chrome/browser/extensions/api/input/input.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698