OLD | NEW |
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 Loading... |
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 |
OLD | NEW |