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

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

Issue 140613002: Cleanup: Replace &LazyInstance::Get() with LazyInstance::Pointer(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | chrome/browser/extensions/api/input/input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698