| 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" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/time.h" | 12 #include "base/time/time.h" |
| 13 #include "chrome/browser/extensions/event_router.h" | 13 #include "chrome/browser/extensions/event_router.h" |
| 14 #include "chrome/browser/extensions/extension_system.h" | 14 #include "chrome/browser/extensions/extension_system.h" |
| 15 #include "chrome/common/chrome_notification_types.h" | 15 #include "chrome/common/chrome_notification_types.h" |
| 16 #include "chrome/common/extensions/api/location.h" | 16 #include "chrome/common/extensions/api/location.h" |
| 17 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
| 18 #include "chrome/common/extensions/permissions/permission_set.h" | 18 #include "chrome/common/extensions/permissions/permission_set.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "content/public/browser/geolocation_provider.h" | 20 #include "content/public/browser/geolocation_provider.h" |
| 21 #include "content/public/browser/notification_details.h" | 21 #include "content/public/browser/notification_details.h" |
| 22 #include "content/public/browser/notification_source.h" | 22 #include "content/public/browser/notification_source.h" |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 ProfileKeyedAPIFactory<LocationManager>* LocationManager::GetFactoryInstance() { | 436 ProfileKeyedAPIFactory<LocationManager>* LocationManager::GetFactoryInstance() { |
| 437 return &g_factory.Get(); | 437 return &g_factory.Get(); |
| 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 |