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

Side by Side Diff: chrome/browser/extensions/api/location/location_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/location/location_manager.h" 5 #include "chrome/browser/extensions/api/location/location_manager.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 NOTREACHED(); 427 NOTREACHED();
428 break; 428 break;
429 } 429 }
430 } 430 }
431 431
432 static base::LazyInstance<ProfileKeyedAPIFactory<LocationManager> > 432 static base::LazyInstance<ProfileKeyedAPIFactory<LocationManager> >
433 g_factory = LAZY_INSTANCE_INITIALIZER; 433 g_factory = LAZY_INSTANCE_INITIALIZER;
434 434
435 // static 435 // static
436 ProfileKeyedAPIFactory<LocationManager>* LocationManager::GetFactoryInstance() { 436 ProfileKeyedAPIFactory<LocationManager>* LocationManager::GetFactoryInstance() {
437 return &g_factory.Get(); 437 return g_factory.Pointer();
438 } 438 }
439 439
440 // static 440 // static
441 LocationManager* LocationManager::Get(Profile* profile) { 441 LocationManager* LocationManager::Get(Profile* profile) {
442 return ProfileKeyedAPIFactory<LocationManager>::GetForProfile(profile); 442 return ProfileKeyedAPIFactory<LocationManager>::GetForProfile(profile);
443 } 443 }
444 444
445 } // namespace extensions 445 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.cc ('k') | chrome/browser/extensions/api/management/management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698